| Copyright | (c) David A Roberts 2015-2019 |
|---|---|
| License | GPL-3 |
| Maintainer | d@vidr.cc |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Language.Stochaskell.Plot
Description
Synopsis
- class ToPNG a where
- renderAxis2 :: State (Axis Cairo V2 Double) () -> QDiagram Cairo V2 Double Any
- class (Functor t, Foldable t) => Traversable (t :: * -> *) where
- class (Foldable1 t, Traversable t) => Traversable1 (t :: * -> *) where
- class Profunctor (p :: * -> * -> *) where
- class Profunctor p => Choice (p :: * -> * -> *) where
- type family Zoomed (m :: * -> *) :: * -> * -> *
- class (MonadState s m, MonadState t n) => Zoom (m :: * -> *) (n :: * -> *) s t | m -> s, n -> t, m t -> n, n s -> m where
- class (Magnified m ~ Magnified n, MonadReader b m, MonadReader a n) => Magnify (m :: * -> *) (n :: * -> *) b a | m -> b, n -> a, m a -> n, n b -> m where
- type family Magnified (m :: * -> *) :: * -> * -> *
- class Wrapped s where
- class (Rewrapped s t, Rewrapped t s) => Rewrapping s t
- class Wrapped s => Rewrapped s t
- type Traversal1' s a = Traversal1 s s a a
- type Traversal1 s t a b = forall (f :: * -> *). Apply f => (a -> f b) -> s -> f t
- type Traversal' s a = Traversal s s a a
- type Traversal s t a b = forall (f :: * -> *). Applicative f => (a -> f b) -> s -> f t
- type Simple (f :: k -> k -> k1 -> k1 -> k2) (s :: k) (a :: k1) = f s s a a
- type Setter' s a = Setter s s a a
- type Setter s t a b = forall (f :: * -> *). Settable f => (a -> f b) -> s -> f t
- type Review t b = forall (p :: * -> * -> *) (f :: * -> *). (Choice p, Bifunctor p, Settable f) => Optic' p f t b
- type Prism' s a = Prism s s a a
- type Prism s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Choice p, Applicative f) => p a (f b) -> p s (f t)
- type Over' (p :: * -> * -> *) (f :: * -> *) s a = Over p f s s a a
- type Over (p :: k -> * -> *) (f :: k1 -> *) s (t :: k1) (a :: k) (b :: k1) = p a (f b) -> s -> f t
- type Optical' (p :: k1 -> k -> *) (q :: k1 -> k -> *) (f :: k1 -> k) (s :: k1) (a :: k1) = Optical p q f s s a a
- type Optical (p :: k2 -> k -> *) (q :: k1 -> k -> *) (f :: k3 -> k) (s :: k1) (t :: k3) (a :: k2) (b :: k3) = p a (f b) -> q s (f t)
- type Optic' (p :: k1 -> k -> *) (f :: k1 -> k) (s :: k1) (a :: k1) = Optic p f s s a a
- type Optic (p :: k1 -> k -> *) (f :: k2 -> k) (s :: k1) (t :: k2) (a :: k1) (b :: k2) = p a (f b) -> p s (f t)
- type LensLike' (f :: * -> *) s a = LensLike f s s a a
- type LensLike (f :: k -> *) s (t :: k) a (b :: k) = (a -> f b) -> s -> f t
- type Lens' s a = Lens s s a a
- type Lens s t a b = forall (f :: * -> *). Functor f => (a -> f b) -> s -> f t
- type Iso' s a = Iso s s a a
- type Iso s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Profunctor p, Functor f) => p a (f b) -> p s (f t)
- type IndexedTraversal1' i s a = IndexedTraversal1 i s s a a
- type IndexedTraversal1 i s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Apply f) => p a (f b) -> s -> f t
- type IndexedTraversal' i s a = IndexedTraversal i s s a a
- type IndexedTraversal i s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Applicative f) => p a (f b) -> s -> f t
- type IndexedSetter' i s a = IndexedSetter i s s a a
- type IndexedSetter i s t a b = forall (f :: * -> *) (p :: * -> * -> *). (Indexable i p, Settable f) => p a (f b) -> s -> f t
- type IndexedLensLike' i (f :: * -> *) s a = IndexedLensLike i f s s a a
- type IndexedLensLike i (f :: k -> *) s (t :: k) a (b :: k) = forall (p :: * -> * -> *). Indexable i p => p a (f b) -> s -> f t
- type IndexedLens' i s a = IndexedLens i s s a a
- type IndexedLens i s t a b = forall (f :: * -> *) (p :: * -> * -> *). (Indexable i p, Functor f) => p a (f b) -> s -> f t
- type IndexedGetter i s a = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Contravariant f, Functor f) => p a (f a) -> s -> f s
- type IndexedFold1 i s a = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Contravariant f, Apply f) => p a (f a) -> s -> f s
- type IndexedFold i s a = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> s -> f s
- type IndexPreservingTraversal1' s a = IndexPreservingTraversal1 s s a a
- type IndexPreservingTraversal1 s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Apply f) => p a (f b) -> p s (f t)
- type IndexPreservingTraversal' s a = IndexPreservingTraversal s s a a
- type IndexPreservingTraversal s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Applicative f) => p a (f b) -> p s (f t)
- type IndexPreservingSetter' s a = IndexPreservingSetter s s a a
- type IndexPreservingSetter s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Settable f) => p a (f b) -> p s (f t)
- type IndexPreservingLens' s a = IndexPreservingLens s s a a
- type IndexPreservingLens s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Functor f) => p a (f b) -> p s (f t)
- type IndexPreservingGetter s a = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Contravariant f, Functor f) => p a (f a) -> p s (f s)
- type IndexPreservingFold1 s a = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Contravariant f, Apply f) => p a (f a) -> p s (f s)
- type IndexPreservingFold s a = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Contravariant f, Applicative f) => p a (f a) -> p s (f s)
- type Getter s a = forall (f :: * -> *). (Contravariant f, Functor f) => (a -> f a) -> s -> f s
- type Fold1 s a = forall (f :: * -> *). (Contravariant f, Apply f) => (a -> f a) -> s -> f s
- type Fold s a = forall (f :: * -> *). (Contravariant f, Applicative f) => (a -> f a) -> s -> f s
- type Equality' (s :: k2) (a :: k2) = Equality s s a a
- type Equality (s :: k1) (t :: k2) (a :: k1) (b :: k2) = forall k3 (p :: k1 -> k3 -> *) (f :: k2 -> k3). p a (f b) -> p s (f t)
- type As (a :: k2) = Equality' a a
- type AReview t b = Optic' (Tagged :: * -> * -> *) Identity t b
- class Field9 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field8 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field7 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field6 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field5 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field4 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field3 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field2 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field19 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field18 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field17 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field16 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field15 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field14 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field13 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field12 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field11 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field10 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Field1 s t a b | s -> a, t -> b, s b -> t, t a -> s where
- type Traversing1' (p :: * -> * -> *) (f :: * -> *) s a = Traversing1 p f s s a a
- type Traversing1 (p :: * -> * -> *) (f :: * -> *) s t a b = Over p (BazaarT1 p f a b) s t a b
- type Traversing' (p :: * -> * -> *) (f :: * -> *) s a = Traversing p f s s a a
- type Traversing (p :: * -> * -> *) (f :: * -> *) s t a b = Over p (BazaarT p f a b) s t a b
- class Ord k => TraverseMin k (m :: * -> *) | m -> k where
- class Ord k => TraverseMax k (m :: * -> *) | m -> k where
- type AnIndexedTraversal1' i s a = AnIndexedTraversal1 i s s a a
- type AnIndexedTraversal1 i s t a b = Over (Indexed i) (Bazaar1 (Indexed i) a b) s t a b
- type AnIndexedTraversal' i s a = AnIndexedTraversal i s s a a
- type AnIndexedTraversal i s t a b = Over (Indexed i) (Bazaar (Indexed i) a b) s t a b
- type ATraversal1' s a = ATraversal1 s s a a
- type ATraversal1 s t a b = LensLike (Bazaar1 ((->) :: * -> * -> *) a b) s t a b
- type ATraversal' s a = ATraversal s s a a
- type ATraversal s t a b = LensLike (Bazaar ((->) :: * -> * -> *) a b) s t a b
- type Setting' (p :: * -> * -> *) s a = Setting p s s a a
- type Setting (p :: * -> * -> *) s t a b = p a (Identity b) -> s -> Identity t
- type AnIndexedSetter' i s a = AnIndexedSetter i s s a a
- type AnIndexedSetter i s t a b = Indexed i a (Identity b) -> s -> Identity t
- type ASetter' s a = ASetter s s a a
- type ASetter s t a b = (a -> Identity b) -> s -> Identity t
- type ReifiedTraversal' s a = ReifiedTraversal s s a a
- newtype ReifiedTraversal s t a b = Traversal {
- runTraversal :: Traversal s t a b
- type ReifiedSetter' s a = ReifiedSetter s s a a
- newtype ReifiedSetter s t a b = Setter {}
- type ReifiedPrism' s a = ReifiedPrism s s a a
- newtype ReifiedPrism s t a b = Prism {}
- type ReifiedLens' s a = ReifiedLens s s a a
- newtype ReifiedLens s t a b = Lens {}
- type ReifiedIso' s a = ReifiedIso s s a a
- newtype ReifiedIso s t a b = Iso {}
- type ReifiedIndexedTraversal' i s a = ReifiedIndexedTraversal i s s a a
- newtype ReifiedIndexedTraversal i s t a b = IndexedTraversal {
- runIndexedTraversal :: IndexedTraversal i s t a b
- type ReifiedIndexedSetter' i s a = ReifiedIndexedSetter i s s a a
- newtype ReifiedIndexedSetter i s t a b = IndexedSetter {
- runIndexedSetter :: IndexedSetter i s t a b
- type ReifiedIndexedLens' i s a = ReifiedIndexedLens i s s a a
- newtype ReifiedIndexedLens i s t a b = IndexedLens {
- runIndexedLens :: IndexedLens i s t a b
- newtype ReifiedIndexedGetter i s a = IndexedGetter {
- runIndexedGetter :: IndexedGetter i s a
- newtype ReifiedIndexedFold i s a = IndexedFold {
- runIndexedFold :: IndexedFold i s a
- newtype ReifiedGetter s a = Getter {}
- newtype ReifiedFold s a = Fold {}
- type APrism' s a = APrism s s a a
- type APrism s t a b = Market a b a (Identity b) -> Market a b s (Identity t)
- class Plated a where
- class GPlated a (g :: * -> *)
- type AnIndexedLens' i s a = AnIndexedLens i s s a a
- type AnIndexedLens i s t a b = Optical (Indexed i) ((->) :: * -> * -> *) (Pretext (Indexed i) a b) s t a b
- type ALens' s a = ALens s s a a
- type ALens s t a b = LensLike (Pretext ((->) :: * -> * -> *) a b) s t a b
- class Bifunctor p => Swapped (p :: * -> * -> *) where
- class Strict lazy strict | lazy -> strict, strict -> lazy where
- type AnIso' s a = AnIso s s a a
- type AnIso s t a b = Exchange a b a (Identity b) -> Exchange a b s (Identity t)
- class (Applicative f, Distributive f, Traversable f) => Settable (f :: * -> *)
- class (Profunctor p, Bifunctor p) => Reviewable (p :: * -> * -> *)
- data Magma i t b a
- data Level i a
- class Reversing t where
- newtype Indexed i a b = Indexed {
- runIndexed :: i -> a -> b
- class Conjoined p => Indexable i (p :: * -> * -> *) where
- class (Choice p, Corepresentable p, Comonad (Corep p), Traversable (Corep p), Strong p, Representable p, Monad (Rep p), MonadFix (Rep p), Distributive (Rep p), Costrong p, ArrowLoop p, ArrowApply p, ArrowChoice p, Closed p) => Conjoined (p :: * -> * -> *) where
- data Traversed a (f :: * -> *)
- data Sequenced a (m :: * -> *)
- data Rightmost a
- data Leftmost a
- data LensRules
- type FieldNamer = Name -> [Name] -> Name -> [DefName]
- data DefName
- type ClassyNamer = Name -> Maybe (Name, Name)
- type Context' a = Context a a
- data Context a b t = Context (b -> t) a
- type Bazaar1' (p :: * -> * -> *) a = Bazaar1 p a a
- newtype Bazaar1 (p :: * -> * -> *) a b t = Bazaar1 {
- runBazaar1 :: forall (f :: * -> *). Apply f => p a (f b) -> f t
- type Bazaar' (p :: * -> * -> *) a = Bazaar p a a
- newtype Bazaar (p :: * -> * -> *) a b t = Bazaar {
- runBazaar :: forall (f :: * -> *). Applicative f => p a (f b) -> f t
- class (FunctorWithIndex i t, FoldableWithIndex i t, Traversable t) => TraversableWithIndex i (t :: * -> *) | t -> i where
- class Functor f => FunctorWithIndex i (f :: * -> *) | f -> i where
- class Foldable f => FoldableWithIndex i (f :: * -> *) | f -> i where
- type IndexedGetting i m s a = Indexed i a (Const m a) -> s -> Const m s
- type Getting r s a = (a -> Const r a) -> s -> Const r s
- type Accessing (p :: * -> * -> *) m s a = p a (Const m a) -> s -> Const m s
- data Identical (a :: k) (b :: k1) (s :: k) (t :: k1) :: forall k k1. k -> k1 -> k -> k1 -> * where
- type AnEquality' (s :: k2) (a :: k2) = AnEquality s s a a
- type AnEquality (s :: k1) (t :: k2) (a :: k1) (b :: k2) = Identical a (Proxy b) a (Proxy b) -> Identical a (Proxy b) s (Proxy t)
- class AsEmpty a where
- class Each s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Snoc s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Cons s t a b | s -> a, t -> b, s b -> t, t a -> s where
- class Ixed m where
- type family IxValue m :: *
- type family Index s :: *
- class Contains m where
- class Ixed m => At m where
- class Contravariant (f :: * -> *) where
- traverseBy :: Traversable t => (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (a -> f b) -> t a -> f (t b)
- sequenceBy :: Traversable t => (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> t (f a) -> f (t a)
- foldMapBy :: Foldable t => (r -> r -> r) -> r -> (a -> r) -> t a -> r
- foldBy :: Foldable t => (a -> a -> a) -> a -> t a -> a
- op :: Wrapped s => (Unwrapped s -> s) -> s -> Unwrapped s
- alaf :: (Functor f, Functor g, Rewrapping s t) => (Unwrapped s -> s) -> (f t -> g s) -> f (Unwrapped t) -> g (Unwrapped s)
- ala :: (Functor f, Rewrapping s t) => (Unwrapped s -> s) -> ((Unwrapped t -> t) -> f s) -> f (Unwrapped s)
- _Wrapping' :: Wrapped s => (Unwrapped s -> s) -> Iso' s (Unwrapped s)
- _Wrapping :: Rewrapping s t => (Unwrapped s -> s) -> Iso s t (Unwrapped s) (Unwrapped t)
- _Wrapped :: Rewrapping s t => Iso s t (Unwrapped s) (Unwrapped t)
- _Unwrapping' :: Wrapped s => (Unwrapped s -> s) -> Iso' (Unwrapped s) s
- _Unwrapping :: Rewrapping s t => (Unwrapped s -> s) -> Iso (Unwrapped t) (Unwrapped s) t s
- _Unwrapped' :: Wrapped s => Iso' (Unwrapped s) s
- _Unwrapped :: Rewrapping s t => Iso (Unwrapped t) (Unwrapped s) t s
- _GWrapped' :: (Generic s, D1 d (C1 c (S1 s' (Rec0 a))) ~ Rep s, Unwrapped s ~ GUnwrapped (Rep s)) => Iso' s (Unwrapped s)
- pattern Wrapped :: forall s. Rewrapped s s => Unwrapped s -> s
- pattern Unwrapped :: forall t. Rewrapped t t => t -> Unwrapped t
- _9' :: Field9 s t a b => Lens s t a b
- _8' :: Field8 s t a b => Lens s t a b
- _7' :: Field7 s t a b => Lens s t a b
- _6' :: Field6 s t a b => Lens s t a b
- _5' :: Field5 s t a b => Lens s t a b
- _4' :: Field4 s t a b => Lens s t a b
- _3' :: Field3 s t a b => Lens s t a b
- _2' :: Field2 s t a b => Lens s t a b
- _19' :: Field19 s t a b => Lens s t a b
- _18' :: Field18 s t a b => Lens s t a b
- _17' :: Field17 s t a b => Lens s t a b
- _16' :: Field16 s t a b => Lens s t a b
- _15' :: Field15 s t a b => Lens s t a b
- _14' :: Field14 s t a b => Lens s t a b
- _13' :: Field13 s t a b => Lens s t a b
- _12' :: Field12 s t a b => Lens s t a b
- _11' :: Field11 s t a b => Lens s t a b
- _10' :: Field10 s t a b => Lens s t a b
- _1' :: Field1 s t a b => Lens s t a b
- unsafeSingular :: (HasCallStack, Conjoined p, Functor f) => Traversing p f s t a b -> Over p f s t a b
- unsafePartsOf' :: ATraversal s t a b -> Lens s t [a] [b]
- unsafePartsOf :: Functor f => Traversing ((->) :: * -> * -> *) f s t a b -> LensLike f s t [a] [b]
- traversed64 :: Traversable f => IndexedTraversal Int64 (f a) (f b) a b
- traversed1 :: Traversable1 f => IndexedTraversal1 Int (f a) (f b) a b
- traversed :: Traversable f => IndexedTraversal Int (f a) (f b) a b
- traverseOf :: LensLike f s t a b -> (a -> f b) -> s -> f t
- traverseByOf :: Traversal s t a b -> (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (a -> f b) -> s -> f t
- transposeOf :: LensLike ZipList s t [a] a -> s -> [t]
- taking :: (Conjoined p, Applicative f) => Int -> Traversing p f s t a a -> Over p f s t a a
- singular :: (HasCallStack, Conjoined p, Functor f) => Traversing p f s t a a -> Over p f s t a a
- sequenceOf :: LensLike (WrappedMonad m) s t (m b) b -> s -> m t
- sequenceByOf :: Traversal s t (f b) b -> (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> s -> f t
- sequenceAOf :: LensLike f s t (f b) b -> s -> f t
- scanr1Of :: LensLike (Backwards (State (Maybe a))) s t a a -> (a -> a -> a) -> s -> t
- scanl1Of :: LensLike (State (Maybe a)) s t a a -> (a -> a -> a) -> s -> t
- partsOf' :: ATraversal s t a a -> Lens s t [a] [a]
- partsOf :: Functor f => Traversing ((->) :: * -> * -> *) f s t a a -> LensLike f s t [a] [a]
- mapMOf :: LensLike (WrappedMonad m) s t a b -> (a -> m b) -> s -> m t
- mapAccumROf :: LensLike (Backwards (State acc)) s t a b -> (acc -> a -> (acc, b)) -> acc -> s -> (acc, t)
- mapAccumLOf :: LensLike (State acc) s t a b -> (acc -> a -> (acc, b)) -> acc -> s -> (acc, t)
- loci :: Applicative f => (a -> f b) -> Bazaar ((->) :: * -> * -> *) a c s -> f (Bazaar ((->) :: * -> * -> *) b c s)
- iunsafePartsOf' :: Over (Indexed i) (Bazaar (Indexed i) a b) s t a b -> IndexedLens [i] s t [a] [b]
- iunsafePartsOf :: (Indexable [i] p, Functor f) => Traversing (Indexed i) f s t a b -> Over p f s t [a] [b]
- itraverseOf :: (Indexed i a (f b) -> s -> f t) -> (i -> a -> f b) -> s -> f t
- ipartsOf' :: (Indexable [i] p, Functor f) => Over (Indexed i) (Bazaar' (Indexed i) a) s t a a -> Over p f s t [a] [a]
- ipartsOf :: (Indexable [i] p, Functor f) => Traversing (Indexed i) f s t a a -> Over p f s t [a] [a]
- imapMOf :: Over (Indexed i) (WrappedMonad m) s t a b -> (i -> a -> m b) -> s -> m t
- imapAccumROf :: Over (Indexed i) (Backwards (State acc)) s t a b -> (i -> acc -> a -> (acc, b)) -> acc -> s -> (acc, t)
- imapAccumLOf :: Over (Indexed i) (State acc) s t a b -> (i -> acc -> a -> (acc, b)) -> acc -> s -> (acc, t)
- iloci :: (Indexable i p, Applicative f) => p a (f b) -> Bazaar (Indexed i) a c s -> f (Bazaar (Indexed i) b c s)
- ignored :: Applicative f => pafb -> s -> f s
- iforOf :: (Indexed i a (f b) -> s -> f t) -> s -> (i -> a -> f b) -> f t
- iforMOf :: (Indexed i a (WrappedMonad m b) -> s -> WrappedMonad m t) -> s -> (i -> a -> m b) -> m t
- ifailover :: Alternative m => Over (Indexed i) ((,) Any) s t a b -> (i -> a -> b) -> s -> m t
- holesOf :: Conjoined p => Over p (Bazaar p a a) s t a a -> s -> [Pretext p a a t]
- forOf :: LensLike f s t a b -> s -> (a -> f b) -> f t
- forMOf :: LensLike (WrappedMonad m) s t a b -> s -> (a -> m b) -> m t
- failover :: Alternative m => LensLike ((,) Any) s t a b -> (a -> b) -> s -> m t
- failing :: (Conjoined p, Applicative f) => Traversing p f s t a b -> Over p f s t a b -> Over p f s t a b
- elementsOf :: Applicative f => LensLike (Indexing f) s t a a -> (Int -> Bool) -> IndexedLensLike Int f s t a a
- elements :: Traversable t => (Int -> Bool) -> IndexedTraversal' Int (t a) a
- elementOf :: Applicative f => LensLike (Indexing f) s t a a -> Int -> IndexedLensLike Int f s t a a
- element :: Traversable t => Int -> IndexedTraversal' Int (t a) a
- dropping :: (Conjoined p, Applicative f) => Int -> Over p (Indexing f) s t a a -> Over p f s t a a
- deepOf :: (Conjoined p, Applicative f) => LensLike f s t s t -> Traversing p f s t a b -> Over p f s t a b
- confusing :: Applicative f => LensLike (Curried (Yoneda f) (Yoneda f)) s t a b -> LensLike f s t a b
- cloneTraversal1 :: ATraversal1 s t a b -> Traversal1 s t a b
- cloneTraversal :: ATraversal s t a b -> Traversal s t a b
- cloneIndexedTraversal1 :: AnIndexedTraversal1 i s t a b -> IndexedTraversal1 i s t a b
- cloneIndexedTraversal :: AnIndexedTraversal i s t a b -> IndexedTraversal i s t a b
- cloneIndexPreservingTraversal1 :: ATraversal1 s t a b -> IndexPreservingTraversal1 s t a b
- cloneIndexPreservingTraversal :: ATraversal s t a b -> IndexPreservingTraversal s t a b
- both1 :: Bitraversable1 r => Traversal1 (r a a) (r b b) a b
- both :: Bitraversable r => Traversal (r a a) (r b b) a b
- beside :: (Representable q, Applicative (Rep q), Applicative f, Bitraversable r) => Optical p q f s t a b -> Optical p q f s' t' a b -> Optical p q f (r s s') (r t t') a b
- underscoreNoPrefixNamer :: FieldNamer
- underscoreNamer :: FieldNamer
- underscoreFields :: LensRules
- simpleLenses :: Lens' LensRules Bool
- mappingNamer :: (String -> [String]) -> FieldNamer
- makeWrapped :: Name -> DecsQ
- makeLensesWith :: LensRules -> Name -> DecsQ
- makeLensesFor :: [(String, String)] -> Name -> DecsQ
- makeLenses :: Name -> DecsQ
- makeFieldsNoPrefix :: Name -> DecsQ
- makeFields :: Name -> DecsQ
- makeClassy_ :: Name -> DecsQ
- makeClassyFor :: String -> String -> [(String, String)] -> Name -> DecsQ
- makeClassy :: Name -> DecsQ
- lookingupNamer :: [(String, String)] -> FieldNamer
- lensRulesFor :: [(String, String)] -> LensRules
- lensRules :: LensRules
- lensField :: Lens' LensRules FieldNamer
- lensClass :: Lens' LensRules ClassyNamer
- generateUpdateableOptics :: Lens' LensRules Bool
- generateSignatures :: Lens' LensRules Bool
- generateLazyPatterns :: Lens' LensRules Bool
- defaultFieldRules :: LensRules
- declareWrapped :: DecsQ -> DecsQ
- declarePrisms :: DecsQ -> DecsQ
- declareLensesWith :: LensRules -> DecsQ -> DecsQ
- declareLensesFor :: [(String, String)] -> DecsQ -> DecsQ
- declareLenses :: DecsQ -> DecsQ
- declareFields :: DecsQ -> DecsQ
- declareClassyFor :: [(String, (String, String))] -> [(String, String)] -> DecsQ -> DecsQ
- declareClassy :: DecsQ -> DecsQ
- createClass :: Lens' LensRules Bool
- classyRules_ :: LensRules
- classyRules :: LensRules
- classUnderscoreNoPrefixNamer :: FieldNamer
- classUnderscoreNoPrefixFields :: LensRules
- camelCaseNamer :: FieldNamer
- camelCaseFields :: LensRules
- abbreviatedNamer :: FieldNamer
- abbreviatedFields :: LensRules
- (||~) :: ASetter s t Bool Bool -> Bool -> s -> t
- (||=) :: MonadState s m => ASetter' s Bool -> Bool -> m ()
- setting :: ((a -> b) -> s -> t) -> IndexPreservingSetter s t a b
- sets :: (Profunctor p, Profunctor q, Settable f) => (p a b -> q s t) -> Optical p q f s t a b
- set' :: ASetter' s a -> a -> s -> s
- set :: ASetter s t a b -> b -> s -> t
- scribe :: (MonadWriter t m, Monoid s) => ASetter s t a b -> b -> m ()
- passing :: MonadWriter w m => Setter w w u v -> m (a, u -> v) -> m a
- over :: ASetter s t a b -> (a -> b) -> s -> t
- modifying :: MonadState s m => ASetter s s a b -> (a -> b) -> m ()
- mapped :: Functor f => Setter (f a) (f b) a b
- mapOf :: ASetter s t a b -> (a -> b) -> s -> t
- lifted :: Monad m => Setter (m a) (m b) a b
- isets :: ((i -> a -> b) -> s -> t) -> IndexedSetter i s t a b
- iset :: AnIndexedSetter i s t a b -> (i -> b) -> s -> t
- ipassing :: MonadWriter w m => IndexedSetter i w w u v -> m (a, i -> u -> v) -> m a
- iover :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> t
- imodifying :: MonadState s m => AnIndexedSetter i s s a b -> (i -> a -> b) -> m ()
- imapOf :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> t
- icensoring :: MonadWriter w m => IndexedSetter i w w u v -> (i -> u -> v) -> m a -> m a
- contramapped :: Contravariant f => Setter (f b) (f a) a b
- cloneSetter :: ASetter s t a b -> Setter s t a b
- cloneIndexedSetter :: AnIndexedSetter i s t a b -> IndexedSetter i s t a b
- cloneIndexPreservingSetter :: ASetter s t a b -> IndexPreservingSetter s t a b
- censoring :: MonadWriter w m => Setter w w u v -> (u -> v) -> m a -> m a
- assignA :: Arrow p => ASetter s t a b -> p s b -> p s t
- assign :: MonadState s m => ASetter s s a b -> b -> m ()
- argument :: Profunctor p => Setter (p b r) (p a r) a b
- (^~) :: (Num a, Integral e) => ASetter s t a a -> e -> s -> t
- (^^~) :: (Fractional a, Integral e) => ASetter s t a a -> e -> s -> t
- (^^=) :: (MonadState s m, Fractional a, Integral e) => ASetter' s a -> e -> m ()
- (^=) :: (MonadState s m, Num a, Integral e) => ASetter' s a -> e -> m ()
- (?~) :: ASetter s t a (Maybe b) -> b -> s -> t
- (?=) :: MonadState s m => ASetter s s a (Maybe b) -> b -> m ()
- (<~) :: MonadState s m => ASetter s s a b -> m b -> m ()
- (<?~) :: ASetter s t a (Maybe b) -> b -> s -> (b, t)
- (<?=) :: MonadState s m => ASetter s s a (Maybe b) -> b -> m b
- (<>~) :: Monoid a => ASetter s t a a -> a -> s -> t
- (<>=) :: (MonadState s m, Monoid a) => ASetter' s a -> a -> m ()
- (<.~) :: ASetter s t a b -> b -> s -> (b, t)
- (<.=) :: MonadState s m => ASetter s s a b -> b -> m b
- (//~) :: Fractional a => ASetter s t a a -> a -> s -> t
- (//=) :: (MonadState s m, Fractional a) => ASetter' s a -> a -> m ()
- (.~) :: ASetter s t a b -> b -> s -> t
- (.@~) :: AnIndexedSetter i s t a b -> (i -> b) -> s -> t
- (.@=) :: MonadState s m => AnIndexedSetter i s s a b -> (i -> b) -> m ()
- (.=) :: MonadState s m => ASetter s s a b -> b -> m ()
- (-~) :: Num a => ASetter s t a a -> a -> s -> t
- (-=) :: (MonadState s m, Num a) => ASetter' s a -> a -> m ()
- (+~) :: Num a => ASetter s t a a -> a -> s -> t
- (+=) :: (MonadState s m, Num a) => ASetter' s a -> a -> m ()
- (*~) :: Num a => ASetter s t a a -> a -> s -> t
- (*=) :: (MonadState s m, Num a) => ASetter' s a -> a -> m ()
- (**~) :: Floating a => ASetter s t a a -> a -> s -> t
- (**=) :: (MonadState s m, Floating a) => ASetter' s a -> a -> m ()
- (&&~) :: ASetter s t Bool Bool -> Bool -> s -> t
- (&&=) :: MonadState s m => ASetter' s Bool -> Bool -> m ()
- (%~) :: ASetter s t a b -> (a -> b) -> s -> t
- (%@~) :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> t
- (%@=) :: MonadState s m => AnIndexedSetter i s s a b -> (i -> a -> b) -> m ()
- (%=) :: MonadState s m => ASetter s s a b -> (a -> b) -> m ()
- unto :: (Profunctor p, Bifunctor p, Functor f) => (b -> t) -> Optic p f s t a b
- un :: (Profunctor p, Bifunctor p, Functor f) => Getting a s a -> Optic' p f a s
- reviews :: MonadReader b m => AReview t b -> (t -> r) -> m r
- review :: MonadReader b m => AReview t b -> m t
- reuses :: MonadState b m => AReview t b -> (t -> r) -> m r
- reuse :: MonadState b m => AReview t b -> m t
- re :: AReview t b -> Getter b t
- (#) :: AReview t b -> b -> t
- without :: APrism s t a b -> APrism u v c d -> Prism (Either s u) (Either t v) (Either a c) (Either b d)
- withPrism :: APrism s t a b -> ((b -> t) -> (s -> Either t a) -> r) -> r
- prism' :: (b -> s) -> (s -> Maybe a) -> Prism s s a b
- prism :: (b -> t) -> (s -> Either t a) -> Prism s t a b
- outside :: Representable p => APrism s t a b -> Lens (p t r) (p s r) (p b r) (p a r)
- only :: Eq a => a -> Prism' a ()
- nearly :: a -> (a -> Bool) -> Prism' a ()
- matching :: APrism s t a b -> s -> Either t a
- isn't :: APrism s t a b -> s -> Bool
- clonePrism :: APrism s t a b -> Prism s t a b
- below :: Traversable f => APrism' s a -> Prism' (f s) (f a)
- aside :: APrism s t a b -> Prism (e, s) (e, t) (e, a) (e, b)
- _Void :: (Choice p, Applicative f) => p a (f Void) -> p s (f s)
- _Show :: (Read a, Show a) => Prism' String a
- _Right :: (Choice p, Applicative f) => p a (f b) -> p (Either c a) (f (Either c b))
- _Nothing :: (Choice p, Applicative f) => p () (f ()) -> p (Maybe a) (f (Maybe a))
- _Left :: (Choice p, Applicative f) => p a (f b) -> p (Either a c) (f (Either b c))
- _Just :: (Choice p, Applicative f) => p a (f b) -> p (Maybe a) (f (Maybe b))
- universeOnOf :: Getting [a] s a -> Getting [a] a a -> s -> [a]
- universeOn :: Plated a => Getting [a] s a -> s -> [a]
- universeOf :: Getting [a] a a -> a -> [a]
- universe :: Plated a => a -> [a]
- transformOnOf :: ASetter s t a b -> ASetter a b a b -> (b -> b) -> s -> t
- transformOn :: Plated a => ASetter s t a a -> (a -> a) -> s -> t
- transformOf :: ASetter a b a b -> (b -> b) -> a -> b
- transformMOnOf :: Monad m => LensLike (WrappedMonad m) s t a b -> LensLike (WrappedMonad m) a b a b -> (b -> m b) -> s -> m t
- transformMOn :: (Monad m, Plated a) => LensLike (WrappedMonad m) s t a a -> (a -> m a) -> s -> m t
- transformMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m b) -> a -> m b
- transformM :: (Monad m, Plated a) => (a -> m a) -> a -> m a
- transform :: Plated a => (a -> a) -> a -> a
- rewriteOnOf :: ASetter s t a b -> ASetter a b a b -> (b -> Maybe a) -> s -> t
- rewriteOn :: Plated a => ASetter s t a a -> (a -> Maybe a) -> s -> t
- rewriteOf :: ASetter a b a b -> (b -> Maybe a) -> a -> b
- rewriteMOnOf :: Monad m => LensLike (WrappedMonad m) s t a b -> LensLike (WrappedMonad m) a b a b -> (b -> m (Maybe a)) -> s -> m t
- rewriteMOn :: (Monad m, Plated a) => LensLike (WrappedMonad m) s t a a -> (a -> m (Maybe a)) -> s -> m t
- rewriteMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m (Maybe a)) -> a -> m b
- rewriteM :: (Monad m, Plated a) => (a -> m (Maybe a)) -> a -> m a
- rewrite :: Plated a => (a -> Maybe a) -> a -> a
- parts :: Plated a => Lens' a [a]
- paraOf :: Getting (Endo [a]) a a -> (a -> [r] -> r) -> a -> r
- para :: Plated a => (a -> [r] -> r) -> a -> r
- holesOnOf :: Conjoined p => LensLike (Bazaar p r r) s t a b -> Over p (Bazaar p r r) a b r r -> s -> [Pretext p r r t]
- holesOn :: Conjoined p => Over p (Bazaar p a a) s t a a -> s -> [Pretext p a a t]
- holes :: Plated a => a -> [Pretext ((->) :: * -> * -> *) a a a]
- gplate :: (Generic a, GPlated a (Rep a)) => Traversal' a a
- deep :: (Conjoined p, Applicative f, Plated s) => Traversing p f s s a b -> Over p f s s a b
- cosmosOnOf :: (Applicative f, Contravariant f) => LensLike' f s a -> LensLike' f a a -> LensLike' f s a
- cosmosOn :: (Applicative f, Contravariant f, Plated a) => LensLike' f s a -> LensLike' f s a
- cosmosOf :: (Applicative f, Contravariant f) => LensLike' f a a -> LensLike' f a a
- cosmos :: Plated a => Fold a a
- contextsOnOf :: ATraversal s t a a -> ATraversal' a a -> s -> [Context a a t]
- contextsOn :: Plated a => ATraversal s t a a -> s -> [Context a a t]
- contextsOf :: ATraversal' a a -> a -> [Context a a a]
- contexts :: Plated a => a -> [Context a a a]
- composOpFold :: Plated a => b -> (b -> b -> b) -> (a -> b) -> a -> b
- children :: Plated a => a -> [a]
- levels :: Applicative f => Traversing ((->) :: * -> * -> *) f s t a b -> IndexedLensLike Int f s t (Level () a) (Level () b)
- ilevels :: Applicative f => Traversing (Indexed i) f s t a b -> IndexedLensLike Int f s t (Level i a) (Level j b)
- united :: Functor f => (() -> f ()) -> a -> f a
- storing :: ALens s t a b -> b -> s -> t
- overA :: Arrow ar => LensLike (Context a b) s t a b -> ar a b -> ar s t
- locus :: IndexedComonadStore p => Lens (p a c s) (p b c s) a b
- lens :: (s -> a) -> (s -> b -> t) -> Lens s t a b
- iplens :: (s -> a) -> (s -> b -> t) -> IndexPreservingLens s t a b
- inside :: Corepresentable p => ALens s t a b -> Lens (p e s) (p e t) (p e a) (p e b)
- ilens :: (s -> (i, a)) -> (s -> b -> t) -> IndexedLens i s t a b
- fusing :: Functor f => LensLike (Yoneda f) s t a b -> LensLike f s t a b
- devoid :: Over p f Void Void a b
- cloneLens :: ALens s t a b -> Lens s t a b
- cloneIndexedLens :: AnIndexedLens i s t a b -> IndexedLens i s t a b
- cloneIndexPreservingLens :: ALens s t a b -> IndexPreservingLens s t a b
- chosen :: (Conjoined p, Functor f) => p a (f b) -> p (Either a a) (f (Either b b))
- choosing :: Functor f => LensLike f s t a b -> LensLike f s' t' a b -> LensLike f (Either s s') (Either t t') a b
- alongside :: LensLike (AlongsideLeft f b') s t a b -> LensLike (AlongsideRight f t) s' t' a' b' -> LensLike f (s, s') (t, t') (a, a') (b, b')
- (^#) :: s -> ALens s t a b -> a
- (??) :: Functor f => f (a -> b) -> a -> f b
- (<||~) :: LensLike ((,) Bool) s t Bool Bool -> Bool -> s -> (Bool, t)
- (<||=) :: MonadState s m => LensLike' ((,) Bool) s Bool -> Bool -> m Bool
- (<^~) :: (Num a, Integral e) => LensLike ((,) a) s t a a -> e -> s -> (a, t)
- (<^^~) :: (Fractional a, Integral e) => LensLike ((,) a) s t a a -> e -> s -> (a, t)
- (<^^=) :: (MonadState s m, Fractional a, Integral e) => LensLike' ((,) a) s a -> e -> m a
- (<^=) :: (MonadState s m, Num a, Integral e) => LensLike' ((,) a) s a -> e -> m a
- (<<~) :: MonadState s m => ALens s s a b -> m b -> m b
- (<<||~) :: LensLike' ((,) Bool) s Bool -> Bool -> s -> (Bool, s)
- (<<||=) :: MonadState s m => LensLike' ((,) Bool) s Bool -> Bool -> m Bool
- (<<^~) :: (Num a, Integral e) => LensLike' ((,) a) s a -> e -> s -> (a, s)
- (<<^^~) :: (Fractional a, Integral e) => LensLike' ((,) a) s a -> e -> s -> (a, s)
- (<<^^=) :: (MonadState s m, Fractional a, Integral e) => LensLike' ((,) a) s a -> e -> m a
- (<<^=) :: (MonadState s m, Num a, Integral e) => LensLike' ((,) a) s a -> e -> m a
- (<<?~) :: LensLike ((,) a) s t a (Maybe b) -> b -> s -> (a, t)
- (<<?=) :: MonadState s m => LensLike ((,) a) s s a (Maybe b) -> b -> m a
- (<<>~) :: Monoid m => LensLike ((,) m) s t m m -> m -> s -> (m, t)
- (<<>=) :: (MonadState s m, Monoid r) => LensLike' ((,) r) s r -> r -> m r
- (<<<>~) :: Monoid r => LensLike' ((,) r) s r -> r -> s -> (r, s)
- (<<<>=) :: (MonadState s m, Monoid r) => LensLike' ((,) r) s r -> r -> m r
- (<<//~) :: Fractional a => LensLike' ((,) a) s a -> a -> s -> (a, s)
- (<<//=) :: (MonadState s m, Fractional a) => LensLike' ((,) a) s a -> a -> m a
- (<<.~) :: LensLike ((,) a) s t a b -> b -> s -> (a, t)
- (<<.=) :: MonadState s m => LensLike ((,) a) s s a b -> b -> m a
- (<<-~) :: Num a => LensLike' ((,) a) s a -> a -> s -> (a, s)
- (<<-=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a
- (<<+~) :: Num a => LensLike' ((,) a) s a -> a -> s -> (a, s)
- (<<+=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a
- (<<*~) :: Num a => LensLike' ((,) a) s a -> a -> s -> (a, s)
- (<<*=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a
- (<<**~) :: Floating a => LensLike' ((,) a) s a -> a -> s -> (a, s)
- (<<**=) :: (MonadState s m, Floating a) => LensLike' ((,) a) s a -> a -> m a
- (<<&&~) :: LensLike' ((,) Bool) s Bool -> Bool -> s -> (Bool, s)
- (<<&&=) :: MonadState s m => LensLike' ((,) Bool) s Bool -> Bool -> m Bool
- (<<%~) :: LensLike ((,) a) s t a b -> (a -> b) -> s -> (a, t)
- (<<%@~) :: Over (Indexed i) ((,) a) s t a b -> (i -> a -> b) -> s -> (a, t)
- (<<%@=) :: MonadState s m => IndexedLensLike i ((,) a) s s a b -> (i -> a -> b) -> m a
- (<<%=) :: (Strong p, MonadState s m) => Over p ((,) a) s s a b -> p a b -> m a
- (<//~) :: Fractional a => LensLike ((,) a) s t a a -> a -> s -> (a, t)
- (<//=) :: (MonadState s m, Fractional a) => LensLike' ((,) a) s a -> a -> m a
- (<-~) :: Num a => LensLike ((,) a) s t a a -> a -> s -> (a, t)
- (<-=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a
- (<+~) :: Num a => LensLike ((,) a) s t a a -> a -> s -> (a, t)
- (<+=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a
- (<*~) :: Num a => LensLike ((,) a) s t a a -> a -> s -> (a, t)
- (<*=) :: (MonadState s m, Num a) => LensLike' ((,) a) s a -> a -> m a
- (<**~) :: Floating a => LensLike ((,) a) s t a a -> a -> s -> (a, t)
- (<**=) :: (MonadState s m, Floating a) => LensLike' ((,) a) s a -> a -> m a
- (<&&~) :: LensLike ((,) Bool) s t Bool Bool -> Bool -> s -> (Bool, t)
- (<&&=) :: MonadState s m => LensLike' ((,) Bool) s Bool -> Bool -> m Bool
- (<%~) :: LensLike ((,) b) s t a b -> (a -> b) -> s -> (b, t)
- (<%@~) :: Over (Indexed i) ((,) b) s t a b -> (i -> a -> b) -> s -> (b, t)
- (<%@=) :: MonadState s m => IndexedLensLike i ((,) b) s s a b -> (i -> a -> b) -> m b
- (<%=) :: MonadState s m => LensLike ((,) b) s s a b -> (a -> b) -> m b
- (<#~) :: ALens s t a b -> b -> s -> (b, t)
- (<#=) :: MonadState s m => ALens s s a b -> b -> m b
- (<#%~) :: ALens s t a b -> (a -> b) -> s -> (b, t)
- (<#%=) :: MonadState s m => ALens s s a b -> (a -> b) -> m b
- (&~) :: s -> State s a -> s
- (%%~) :: LensLike f s t a b -> (a -> f b) -> s -> f t
- (%%@~) :: IndexedLensLike i f s t a b -> (i -> a -> f b) -> s -> f t
- (%%@=) :: MonadState s m => IndexedLensLike i ((,) r) s s a b -> (i -> a -> (r, b)) -> m r
- (%%=) :: MonadState s m => Over p ((,) r) s s a b -> p a (r, b) -> m r
- (#~) :: ALens s t a b -> b -> s -> t
- (#=) :: MonadState s m => ALens s s a b -> b -> m ()
- (#%~) :: ALens s t a b -> (a -> b) -> s -> t
- (#%=) :: MonadState s m => ALens s s a b -> (a -> b) -> m ()
- (#%%~) :: Functor f => ALens s t a b -> (a -> f b) -> s -> f t
- (#%%=) :: MonadState s m => ALens s s a b -> (a -> (r, b)) -> m r
- withIso :: AnIso s t a b -> ((s -> a) -> (b -> t) -> r) -> r
- under :: AnIso s t a b -> (t -> s) -> b -> a
- uncurried :: (Profunctor p, Functor f) => p ((a, b) -> c) (f ((d, e) -> f)) -> p (a -> b -> c) (f (d -> e -> f))
- seconding :: (Bifunctor f, Bifunctor g) => AnIso s t a b -> Iso (f x s) (g y t) (f x a) (g y b)
- rmapping :: (Profunctor p, Profunctor q) => AnIso s t a b -> Iso (p x s) (q y t) (p x a) (q y b)
- reversed :: Reversing a => Iso' a a
- non' :: APrism' a () -> Iso' (Maybe a) a
- non :: Eq a => a -> Iso' (Maybe a) a
- mapping :: (Functor f, Functor g) => AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
- lmapping :: (Profunctor p, Profunctor q) => AnIso s t a b -> Iso (p a x) (q b y) (p s x) (q t y)
- lazy :: Strict lazy strict => Iso' strict lazy
- iso :: (s -> a) -> (b -> t) -> Iso s t a b
- involuted :: (a -> a) -> Iso' a a
- imagma :: Over (Indexed i) (Molten i a b) s t a b -> Iso s t' (Magma i t b a) (Magma j t' c c)
- from :: AnIso s t a b -> Iso b a t s
- flipped :: (Profunctor p, Functor f) => p (b -> a -> c) (f (b' -> a' -> c')) -> p (a -> b -> c) (f (a' -> b' -> c'))
- firsting :: (Bifunctor f, Bifunctor g) => AnIso s t a b -> Iso (f s x) (g t y) (f a x) (g b y)
- enum :: Enum a => Iso' Int a
- dimapping :: (Profunctor p, Profunctor q) => AnIso s t a b -> AnIso s' t' a' b' -> Iso (p a s') (q b t') (p s a') (q t b')
- curried :: (Profunctor p, Functor f) => p (a -> b -> c) (f (d -> e -> f)) -> p ((a, b) -> c) (f ((d, e) -> f))
- contramapping :: Contravariant f => AnIso s t a b -> Iso (f a) (f b) (f s) (f t)
- coerced :: (Coercible s a, Coercible t b) => Iso s t a b
- cloneIso :: AnIso s t a b -> Iso s t a b
- bimapping :: (Bifunctor f, Bifunctor g) => AnIso s t a b -> AnIso s' t' a' b' -> Iso (f s s') (g t t') (f a a') (g b b')
- auf :: Optic (Costar f) g s t a b -> (f a -> g b) -> f s -> g t
- au :: Functor f => AnIso s t a b -> ((b -> t) -> f s) -> f a
- anon :: a -> (a -> Bool) -> Iso' (Maybe a) a
- pattern Swapped :: forall (p :: * -> * -> *) c d. Swapped p => p d c -> p c d
- pattern Strict :: forall s t. Strict s t => t -> s
- pattern Reversed :: forall t. Reversing t => t -> t
- pattern List :: forall l. IsList l => [Item l] -> l
- pattern Lazy :: forall t s. Strict t s => t -> s
- retagged :: (Profunctor p, Bifunctor p) => p a b -> p s b
- makePrisms :: Name -> DecsQ
- makeClassyPrisms :: Name -> DecsQ
- withIndex :: (Indexable i p, Functor f) => p (i, s) (f (j, t)) -> Indexed i s (f t)
- indexing64 :: Indexable Int64 p => ((a -> Indexing64 f b) -> s -> Indexing64 f t) -> p a (f b) -> s -> f t
- indexing :: Indexable Int p => ((a -> Indexing f b) -> s -> Indexing f t) -> p a (f b) -> s -> f t
- asIndex :: (Indexable i p, Contravariant f, Functor f) => p i (f i) -> Indexed i s (f s)
- selfIndex :: Indexable a p => p a fb -> a -> fb
- reindexed :: Indexable j p => (i -> j) -> (Indexed i a b -> r) -> p a b -> r
- none :: Foldable f => (a -> Bool) -> f a -> Bool
- itraverse_ :: (FoldableWithIndex i t, Applicative f) => (i -> a -> f b) -> t a -> f ()
- itraverseByOf :: IndexedTraversal i s t a b -> (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (i -> a -> f b) -> s -> f t
- itraverseBy :: TraversableWithIndex i t => (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (i -> a -> f b) -> t a -> f (t b)
- itoList :: FoldableWithIndex i f => f a -> [(i, a)]
- inone :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Bool
- indices :: (Indexable i p, Applicative f) => (i -> Bool) -> Optical' p (Indexed i) f a a
- index :: (Indexable i p, Eq i, Applicative f) => i -> Optical' p (Indexed i) f a a
- imapM_ :: (FoldableWithIndex i t, Monad m) => (i -> a -> m b) -> t a -> m ()
- imapM :: (TraversableWithIndex i t, Monad m) => (i -> a -> m b) -> t a -> m (t b)
- imapAccumR :: TraversableWithIndex i t => (i -> s -> a -> (s, b)) -> s -> t a -> (s, t b)
- imapAccumL :: TraversableWithIndex i t => (i -> s -> a -> (s, b)) -> s -> t a -> (s, t b)
- ifor_ :: (FoldableWithIndex i t, Applicative f) => t a -> (i -> a -> f b) -> f ()
- iforM_ :: (FoldableWithIndex i t, Monad m) => t a -> (i -> a -> m b) -> m ()
- iforM :: (TraversableWithIndex i t, Monad m) => t a -> (i -> a -> m b) -> m (t b)
- ifor :: (TraversableWithIndex i t, Applicative f) => t a -> (i -> a -> f b) -> f (t b)
- ifoldrM :: (FoldableWithIndex i f, Monad m) => (i -> a -> b -> m b) -> b -> f a -> m b
- ifoldlM :: (FoldableWithIndex i f, Monad m) => (i -> b -> a -> m b) -> b -> f a -> m b
- ifoldMapByOf :: IndexedFold i t a -> (r -> r -> r) -> r -> (i -> a -> r) -> t -> r
- ifoldMapBy :: FoldableWithIndex i t => (r -> r -> r) -> r -> (i -> a -> r) -> t a -> r
- ifind :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Maybe (i, a)
- iconcatMap :: FoldableWithIndex i f => (i -> a -> [b]) -> f a -> [b]
- icompose :: Indexable p c => (i -> j -> p) -> (Indexed i s t -> r) -> (Indexed j a b -> s -> t) -> c a b -> r
- iany :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Bool
- iall :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Bool
- (<.>) :: Indexable (i, j) p => (Indexed i s t -> r) -> (Indexed j a b -> s -> t) -> p a b -> r
- (<.) :: Indexable i p => (Indexed i s t -> r) -> ((a -> b) -> s -> t) -> p a b -> r
- (.>) :: (st -> r) -> (kab -> st) -> kab -> r
- views :: MonadReader s m => LensLike' (Const r :: * -> *) s a -> (a -> r) -> m r
- view :: MonadReader s m => Getting a s a -> m a
- uses :: MonadState s m => LensLike' (Const r :: * -> *) s a -> (a -> r) -> m r
- use :: MonadState s m => Getting a s a -> m a
- to :: (Profunctor p, Contravariant f) => (s -> a) -> Optic' p f s a
- listenings :: MonadWriter w m => Getting v w u -> (u -> v) -> m a -> m (a, v)
- listening :: MonadWriter w m => Getting u w u -> m a -> m (a, u)
- like :: (Profunctor p, Contravariant f, Functor f) => a -> Optic' p f s a
- iviews :: MonadReader s m => IndexedGetting i r s a -> (i -> a -> r) -> m r
- iview :: MonadReader s m => IndexedGetting i (i, a) s a -> m (i, a)
- iuses :: MonadState s m => IndexedGetting i r s a -> (i -> a -> r) -> m r
- iuse :: MonadState s m => IndexedGetting i (i, a) s a -> m (i, a)
- ito :: (Indexable i p, Contravariant f) => (s -> (i, a)) -> Over' p f s a
- ilistenings :: MonadWriter w m => IndexedGetting i v w u -> (i -> u -> v) -> m a -> m (a, v)
- ilistening :: MonadWriter w m => IndexedGetting i (i, u) w u -> m a -> m (a, (i, u))
- ilike :: (Indexable i p, Contravariant f, Functor f) => i -> a -> Over' p f s a
- getting :: (Profunctor p, Profunctor q, Functor f, Contravariant f) => Optical p q f s t a b -> Optical' p q f s a
- (^@.) :: s -> IndexedGetting i (i, a) s a -> (i, a)
- (^.) :: s -> Getting a s a -> a
- worded :: Applicative f => IndexedLensLike' Int f String String
- unfolded :: (b -> Maybe (a, b)) -> Fold b a
- traverseOf_ :: Functor f => Getting (Traversed r f) s a -> (a -> f r) -> s -> f ()
- traverse1Of_ :: Functor f => Getting (TraversedF r f) s a -> (a -> f r) -> s -> f ()
- toNonEmptyOf :: Getting (NonEmptyDList a) s a -> s -> NonEmpty a
- toListOf :: Getting (Endo [a]) s a -> s -> [a]
- takingWhile :: (Conjoined p, Applicative f) => (a -> Bool) -> Over p (TakingWhile p f a a) s t a a -> Over p f s t a a
- sumOf :: Num a => Getting (Endo (Endo a)) s a -> s -> a
- sequenceOf_ :: Monad m => Getting (Sequenced a m) s (m a) -> s -> m ()
- sequenceAOf_ :: Functor f => Getting (Traversed a f) s (f a) -> s -> f ()
- sequence1Of_ :: Functor f => Getting (TraversedF a f) s (f a) -> s -> f ()
- replicated :: Int -> Fold a a
- repeated :: Apply f => LensLike' f a a
- productOf :: Num a => Getting (Endo (Endo a)) s a -> s -> a
- previews :: MonadReader s m => Getting (First r) s a -> (a -> r) -> m (Maybe r)
- preview :: MonadReader s m => Getting (First a) s a -> m (Maybe a)
- preuses :: MonadState s m => Getting (First r) s a -> (a -> r) -> m (Maybe r)
- preuse :: MonadState s m => Getting (First a) s a -> m (Maybe a)
- pre :: Getting (First a) s a -> IndexPreservingGetter s (Maybe a)
- orOf :: Getting Any s Bool -> s -> Bool
- nullOf :: Getting All s a -> s -> Bool
- notNullOf :: Getting Any s a -> s -> Bool
- notElemOf :: Eq a => Getting All s a -> a -> s -> Bool
- noneOf :: Getting Any s a -> (a -> Bool) -> s -> Bool
- msumOf :: MonadPlus m => Getting (Endo (m a)) s (m a) -> s -> m a
- minimumOf :: Ord a => Getting (Endo (Endo (Maybe a))) s a -> s -> Maybe a
- minimumByOf :: Getting (Endo (Endo (Maybe a))) s a -> (a -> a -> Ordering) -> s -> Maybe a
- minimum1Of :: Ord a => Getting (Min a) s a -> s -> a
- maximumOf :: Ord a => Getting (Endo (Endo (Maybe a))) s a -> s -> Maybe a
- maximumByOf :: Getting (Endo (Endo (Maybe a))) s a -> (a -> a -> Ordering) -> s -> Maybe a
- maximum1Of :: Ord a => Getting (Max a) s a -> s -> a
- mapMOf_ :: Monad m => Getting (Sequenced r m) s a -> (a -> m r) -> s -> m ()
- lookupOf :: Eq k => Getting (Endo (Maybe v)) s (k, v) -> k -> s -> Maybe v
- lined :: Applicative f => IndexedLensLike' Int f String String
- lengthOf :: Getting (Endo (Endo Int)) s a -> s -> Int
- lastOf :: Getting (Rightmost a) s a -> s -> Maybe a
- last1Of :: Getting (Last a) s a -> s -> a
- itraverseOf_ :: Functor f => IndexedGetting i (Traversed r f) s a -> (i -> a -> f r) -> s -> f ()
- itoListOf :: IndexedGetting i (Endo [(i, a)]) s a -> s -> [(i, a)]
- iterated :: Apply f => (a -> a) -> LensLike' f a a
- itakingWhile :: (Indexable i p, Profunctor q, Contravariant f, Applicative f) => (i -> a -> Bool) -> Optical' (Indexed i) q (Const (Endo (f s)) :: * -> *) s a -> Optical' p q f s a
- ipreviews :: MonadReader s m => IndexedGetting i (First r) s a -> (i -> a -> r) -> m (Maybe r)
- ipreview :: MonadReader s m => IndexedGetting i (First (i, a)) s a -> m (Maybe (i, a))
- ipreuses :: MonadState s m => IndexedGetting i (First r) s a -> (i -> a -> r) -> m (Maybe r)
- ipreuse :: MonadState s m => IndexedGetting i (First (i, a)) s a -> m (Maybe (i, a))
- ipre :: IndexedGetting i (First (i, a)) s a -> IndexPreservingGetter s (Maybe (i, a))
- inoneOf :: IndexedGetting i Any s a -> (i -> a -> Bool) -> s -> Bool
- imapMOf_ :: Monad m => IndexedGetting i (Sequenced r m) s a -> (i -> a -> m r) -> s -> m ()
- iforOf_ :: Functor f => IndexedGetting i (Traversed r f) s a -> s -> (i -> a -> f r) -> f ()
- iforMOf_ :: Monad m => IndexedGetting i (Sequenced r m) s a -> s -> (i -> a -> m r) -> m ()
- ifoldring :: (Indexable i p, Contravariant f, Applicative f) => ((i -> a -> f a -> f a) -> f a -> s -> f a) -> Over p f s t a b
- ifoldrOf' :: IndexedGetting i (Dual (Endo (r -> r))) s a -> (i -> a -> r -> r) -> r -> s -> r
- ifoldrOf :: IndexedGetting i (Endo r) s a -> (i -> a -> r -> r) -> r -> s -> r
- ifoldrMOf :: Monad m => IndexedGetting i (Dual (Endo (r -> m r))) s a -> (i -> a -> r -> m r) -> r -> s -> m r
- ifoldlOf' :: IndexedGetting i (Endo (r -> r)) s a -> (i -> r -> a -> r) -> r -> s -> r
- ifoldlOf :: IndexedGetting i (Dual (Endo r)) s a -> (i -> r -> a -> r) -> r -> s -> r
- ifoldlMOf :: Monad m => IndexedGetting i (Endo (r -> m r)) s a -> (i -> r -> a -> m r) -> r -> s -> m r
- ifolding :: (Foldable f, Indexable i p, Contravariant g, Applicative g) => (s -> f (i, a)) -> Over p g s t a b
- ifoldMapOf :: IndexedGetting i m s a -> (i -> a -> m) -> s -> m
- ifindOf :: IndexedGetting i (Endo (Maybe a)) s a -> (i -> a -> Bool) -> s -> Maybe a
- ifindMOf :: Monad m => IndexedGetting i (Endo (m (Maybe a))) s a -> (i -> a -> m Bool) -> s -> m (Maybe a)
- ifiltered :: (Indexable i p, Applicative f) => (i -> a -> Bool) -> Optical' p (Indexed i) f a a
- idroppingWhile :: (Indexable i p, Profunctor q, Applicative f) => (i -> a -> Bool) -> Optical (Indexed i) q (Compose (State Bool) f) s t a a -> Optical p q f s t a a
- iconcatMapOf :: IndexedGetting i [r] s a -> (i -> a -> [r]) -> s -> [r]
- ianyOf :: IndexedGetting i Any s a -> (i -> a -> Bool) -> s -> Bool
- iallOf :: IndexedGetting i All s a -> (i -> a -> Bool) -> s -> Bool
- hasn't :: Getting All s a -> s -> Bool
- has :: Getting Any s a -> s -> Bool
- forOf_ :: Functor f => Getting (Traversed r f) s a -> s -> (a -> f r) -> f ()
- forMOf_ :: Monad m => Getting (Sequenced r m) s a -> s -> (a -> m r) -> m ()
- for1Of_ :: Functor f => Getting (TraversedF r f) s a -> s -> (a -> f r) -> f ()
- foldring :: (Contravariant f, Applicative f) => ((a -> f a -> f a) -> f a -> s -> f a) -> LensLike f s t a b
- foldrOf' :: Getting (Dual (Endo (Endo r))) s a -> (a -> r -> r) -> r -> s -> r
- foldrOf :: Getting (Endo r) s a -> (a -> r -> r) -> r -> s -> r
- foldrMOf :: Monad m => Getting (Dual (Endo (r -> m r))) s a -> (a -> r -> m r) -> r -> s -> m r
- foldr1Of' :: HasCallStack => Getting (Dual (Endo (Endo (Maybe a)))) s a -> (a -> a -> a) -> s -> a
- foldr1Of :: HasCallStack => Getting (Endo (Maybe a)) s a -> (a -> a -> a) -> s -> a
- foldlOf' :: Getting (Endo (Endo r)) s a -> (r -> a -> r) -> r -> s -> r
- foldlOf :: Getting (Dual (Endo r)) s a -> (r -> a -> r) -> r -> s -> r
- foldlMOf :: Monad m => Getting (Endo (r -> m r)) s a -> (r -> a -> m r) -> r -> s -> m r
- foldl1Of' :: HasCallStack => Getting (Endo (Endo (Maybe a))) s a -> (a -> a -> a) -> s -> a
- foldl1Of :: HasCallStack => Getting (Dual (Endo (Maybe a))) s a -> (a -> a -> a) -> s -> a
- folding :: Foldable f => (s -> f a) -> Fold s a
- folded64 :: Foldable f => IndexedFold Int64 (f a) a
- folded :: Foldable f => IndexedFold Int (f a) a
- foldOf :: Getting a s a -> s -> a
- foldMapOf :: Getting r s a -> (a -> r) -> s -> r
- foldMapByOf :: Fold s a -> (r -> r -> r) -> r -> (a -> r) -> s -> r
- foldByOf :: Fold s a -> (a -> a -> a) -> a -> s -> a
- firstOf :: Getting (Leftmost a) s a -> s -> Maybe a
- first1Of :: Getting (First a) s a -> s -> a
- findOf :: Getting (Endo (Maybe a)) s a -> (a -> Bool) -> s -> Maybe a
- findMOf :: Monad m => Getting (Endo (m (Maybe a))) s a -> (a -> m Bool) -> s -> m (Maybe a)
- findIndicesOf :: IndexedGetting i (Endo [i]) s a -> (a -> Bool) -> s -> [i]
- findIndexOf :: IndexedGetting i (First i) s a -> (a -> Bool) -> s -> Maybe i
- filtered :: (Choice p, Applicative f) => (a -> Bool) -> Optic' p f a a
- elemOf :: Eq a => Getting Any s a -> a -> s -> Bool
- elemIndicesOf :: Eq a => IndexedGetting i (Endo [i]) s a -> a -> s -> [i]
- elemIndexOf :: Eq a => IndexedGetting i (First i) s a -> a -> s -> Maybe i
- droppingWhile :: (Conjoined p, Profunctor q, Applicative f) => (a -> Bool) -> Optical p q (Compose (State Bool) f) s t a a -> Optical p q f s t a a
- cycled :: Apply f => LensLike f s t a b -> LensLike f s t a b
- concatOf :: Getting [r] s [r] -> s -> [r]
- concatMapOf :: Getting [r] s a -> (a -> [r]) -> s -> [r]
- backwards :: (Profunctor p, Profunctor q) => Optical p q (Backwards f) s t a b -> Optical p q f s t a b
- asumOf :: Alternative f => Getting (Endo (f a)) s (f a) -> s -> f a
- anyOf :: Getting Any s a -> (a -> Bool) -> s -> Bool
- andOf :: Getting All s Bool -> s -> Bool
- allOf :: Getting All s a -> (a -> Bool) -> s -> Bool
- (^@?!) :: HasCallStack => s -> IndexedGetting i (Endo (i, a)) s a -> (i, a)
- (^@?) :: s -> IndexedGetting i (Endo (Maybe (i, a))) s a -> Maybe (i, a)
- (^@..) :: s -> IndexedGetting i (Endo [(i, a)]) s a -> [(i, a)]
- (^?!) :: HasCallStack => s -> Getting (Endo a) s a -> a
- (^?) :: s -> Getting (First a) s a -> Maybe a
- (^..) :: s -> Getting (Endo [a]) s a -> [a]
- substEq :: AnEquality s t a b -> ((s ~ a) -> (t ~ b) -> r) -> r
- simply :: (Optic' p f s a -> r) -> Optic' p f s a -> r
- simple :: p a (f a) -> p a (f a)
- runEq :: AnEquality s t a b -> Identical s t a b
- mapEq :: AnEquality s t a b -> f s -> f a
- fromEq :: AnEquality s t a b -> Equality b a t s
- pattern Empty :: forall s. AsEmpty s => s
- (|>) :: Snoc s s a a => s -> a -> s
- unsnoc :: Snoc s s a a => s -> Maybe (s, a)
- uncons :: Cons s s a a => s -> Maybe (a, s)
- snoc :: Snoc s s a a => s -> a -> s
- cons :: Cons s s a a => a -> s -> s
- _tail :: Cons s s a a => Traversal' s s
- _last :: Snoc s s a a => Traversal' s a
- _init :: Snoc s s a a => Traversal' s s
- _head :: Cons s s a a => Traversal' s a
- (<|) :: Cons s s a a => a -> s -> s
- pattern (:>) :: forall a b. Snoc a a b b => a -> b -> a
- pattern (:<) :: forall b a. Cons b b a a => a -> b -> b
- sans :: At m => Index m -> m -> m
- ixAt :: At m => Index m -> Traversal' m (IxValue m)
- iix :: Ixed m => Index m -> IndexedTraversal' (Index m) m (IxValue m)
- icontains :: Contains m => Index m -> IndexedLens' (Index m) m Bool
- iat :: At m => Index m -> IndexedLens' (Index m) m (Maybe (IxValue m))
- class Default a where
- readColourName :: (Monad m, Ord a, Floating a) => String -> m (Colour a)
- aliceblue :: (Ord a, Floating a) => Colour a
- antiquewhite :: (Ord a, Floating a) => Colour a
- aqua :: (Ord a, Floating a) => Colour a
- aquamarine :: (Ord a, Floating a) => Colour a
- azure :: (Ord a, Floating a) => Colour a
- beige :: (Ord a, Floating a) => Colour a
- bisque :: (Ord a, Floating a) => Colour a
- blanchedalmond :: (Ord a, Floating a) => Colour a
- blue :: (Ord a, Floating a) => Colour a
- blueviolet :: (Ord a, Floating a) => Colour a
- brown :: (Ord a, Floating a) => Colour a
- burlywood :: (Ord a, Floating a) => Colour a
- cadetblue :: (Ord a, Floating a) => Colour a
- chartreuse :: (Ord a, Floating a) => Colour a
- chocolate :: (Ord a, Floating a) => Colour a
- coral :: (Ord a, Floating a) => Colour a
- cornflowerblue :: (Ord a, Floating a) => Colour a
- cornsilk :: (Ord a, Floating a) => Colour a
- crimson :: (Ord a, Floating a) => Colour a
- cyan :: (Ord a, Floating a) => Colour a
- darkblue :: (Ord a, Floating a) => Colour a
- darkcyan :: (Ord a, Floating a) => Colour a
- darkgoldenrod :: (Ord a, Floating a) => Colour a
- darkgray :: (Ord a, Floating a) => Colour a
- darkgreen :: (Ord a, Floating a) => Colour a
- darkgrey :: (Ord a, Floating a) => Colour a
- darkkhaki :: (Ord a, Floating a) => Colour a
- darkmagenta :: (Ord a, Floating a) => Colour a
- darkolivegreen :: (Ord a, Floating a) => Colour a
- darkorange :: (Ord a, Floating a) => Colour a
- darkorchid :: (Ord a, Floating a) => Colour a
- darkred :: (Ord a, Floating a) => Colour a
- darksalmon :: (Ord a, Floating a) => Colour a
- darkseagreen :: (Ord a, Floating a) => Colour a
- darkslateblue :: (Ord a, Floating a) => Colour a
- darkslategray :: (Ord a, Floating a) => Colour a
- darkslategrey :: (Ord a, Floating a) => Colour a
- darkturquoise :: (Ord a, Floating a) => Colour a
- darkviolet :: (Ord a, Floating a) => Colour a
- deeppink :: (Ord a, Floating a) => Colour a
- deepskyblue :: (Ord a, Floating a) => Colour a
- dimgray :: (Ord a, Floating a) => Colour a
- dimgrey :: (Ord a, Floating a) => Colour a
- dodgerblue :: (Ord a, Floating a) => Colour a
- firebrick :: (Ord a, Floating a) => Colour a
- floralwhite :: (Ord a, Floating a) => Colour a
- forestgreen :: (Ord a, Floating a) => Colour a
- fuchsia :: (Ord a, Floating a) => Colour a
- gainsboro :: (Ord a, Floating a) => Colour a
- ghostwhite :: (Ord a, Floating a) => Colour a
- gold :: (Ord a, Floating a) => Colour a
- goldenrod :: (Ord a, Floating a) => Colour a
- gray :: (Ord a, Floating a) => Colour a
- grey :: (Ord a, Floating a) => Colour a
- green :: (Ord a, Floating a) => Colour a
- greenyellow :: (Ord a, Floating a) => Colour a
- honeydew :: (Ord a, Floating a) => Colour a
- hotpink :: (Ord a, Floating a) => Colour a
- indianred :: (Ord a, Floating a) => Colour a
- indigo :: (Ord a, Floating a) => Colour a
- ivory :: (Ord a, Floating a) => Colour a
- khaki :: (Ord a, Floating a) => Colour a
- lavender :: (Ord a, Floating a) => Colour a
- lavenderblush :: (Ord a, Floating a) => Colour a
- lawngreen :: (Ord a, Floating a) => Colour a
- lemonchiffon :: (Ord a, Floating a) => Colour a
- lightblue :: (Ord a, Floating a) => Colour a
- lightcoral :: (Ord a, Floating a) => Colour a
- lightcyan :: (Ord a, Floating a) => Colour a
- lightgoldenrodyellow :: (Ord a, Floating a) => Colour a
- lightgray :: (Ord a, Floating a) => Colour a
- lightgreen :: (Ord a, Floating a) => Colour a
- lightgrey :: (Ord a, Floating a) => Colour a
- lightpink :: (Ord a, Floating a) => Colour a
- lightsalmon :: (Ord a, Floating a) => Colour a
- lightseagreen :: (Ord a, Floating a) => Colour a
- lightskyblue :: (Ord a, Floating a) => Colour a
- lightslategray :: (Ord a, Floating a) => Colour a
- lightslategrey :: (Ord a, Floating a) => Colour a
- lightsteelblue :: (Ord a, Floating a) => Colour a
- lightyellow :: (Ord a, Floating a) => Colour a
- lime :: (Ord a, Floating a) => Colour a
- limegreen :: (Ord a, Floating a) => Colour a
- linen :: (Ord a, Floating a) => Colour a
- magenta :: (Ord a, Floating a) => Colour a
- maroon :: (Ord a, Floating a) => Colour a
- mediumaquamarine :: (Ord a, Floating a) => Colour a
- mediumblue :: (Ord a, Floating a) => Colour a
- mediumorchid :: (Ord a, Floating a) => Colour a
- mediumpurple :: (Ord a, Floating a) => Colour a
- mediumseagreen :: (Ord a, Floating a) => Colour a
- mediumslateblue :: (Ord a, Floating a) => Colour a
- mediumspringgreen :: (Ord a, Floating a) => Colour a
- mediumturquoise :: (Ord a, Floating a) => Colour a
- mediumvioletred :: (Ord a, Floating a) => Colour a
- midnightblue :: (Ord a, Floating a) => Colour a
- mintcream :: (Ord a, Floating a) => Colour a
- mistyrose :: (Ord a, Floating a) => Colour a
- moccasin :: (Ord a, Floating a) => Colour a
- navajowhite :: (Ord a, Floating a) => Colour a
- navy :: (Ord a, Floating a) => Colour a
- oldlace :: (Ord a, Floating a) => Colour a
- olive :: (Ord a, Floating a) => Colour a
- olivedrab :: (Ord a, Floating a) => Colour a
- orange :: (Ord a, Floating a) => Colour a
- orangered :: (Ord a, Floating a) => Colour a
- orchid :: (Ord a, Floating a) => Colour a
- palegoldenrod :: (Ord a, Floating a) => Colour a
- palegreen :: (Ord a, Floating a) => Colour a
- paleturquoise :: (Ord a, Floating a) => Colour a
- palevioletred :: (Ord a, Floating a) => Colour a
- papayawhip :: (Ord a, Floating a) => Colour a
- peachpuff :: (Ord a, Floating a) => Colour a
- peru :: (Ord a, Floating a) => Colour a
- pink :: (Ord a, Floating a) => Colour a
- plum :: (Ord a, Floating a) => Colour a
- powderblue :: (Ord a, Floating a) => Colour a
- purple :: (Ord a, Floating a) => Colour a
- red :: (Ord a, Floating a) => Colour a
- rosybrown :: (Ord a, Floating a) => Colour a
- royalblue :: (Ord a, Floating a) => Colour a
- saddlebrown :: (Ord a, Floating a) => Colour a
- salmon :: (Ord a, Floating a) => Colour a
- sandybrown :: (Ord a, Floating a) => Colour a
- seagreen :: (Ord a, Floating a) => Colour a
- seashell :: (Ord a, Floating a) => Colour a
- sienna :: (Ord a, Floating a) => Colour a
- silver :: (Ord a, Floating a) => Colour a
- skyblue :: (Ord a, Floating a) => Colour a
- slateblue :: (Ord a, Floating a) => Colour a
- slategray :: (Ord a, Floating a) => Colour a
- slategrey :: (Ord a, Floating a) => Colour a
- snow :: (Ord a, Floating a) => Colour a
- springgreen :: (Ord a, Floating a) => Colour a
- steelblue :: (Ord a, Floating a) => Colour a
- tan :: (Ord a, Floating a) => Colour a
- teal :: (Ord a, Floating a) => Colour a
- thistle :: (Ord a, Floating a) => Colour a
- tomato :: (Ord a, Floating a) => Colour a
- turquoise :: (Ord a, Floating a) => Colour a
- violet :: (Ord a, Floating a) => Colour a
- wheat :: (Ord a, Floating a) => Colour a
- white :: (Ord a, Floating a) => Colour a
- whitesmoke :: (Ord a, Floating a) => Colour a
- yellow :: (Ord a, Floating a) => Colour a
- yellowgreen :: (Ord a, Floating a) => Colour a
- (<&>) :: Functor f => f a -> (a -> b) -> f b
- (&) :: a -> (a -> b) -> b
- newtype Const a (b :: k) :: forall k. * -> k -> * = Const {
- getConst :: a
- newtype Identity a = Identity {
- runIdentity :: a
- class Bifunctor (p :: * -> * -> *) where
- bars :: (PlotValue x, BarsPlotValue y) => [String] -> [(x, [y])] -> EC l (PlotBars x y)
- points :: String -> [(x, y)] -> EC l (PlotPoints x y)
- line :: String -> [[(x, y)]] -> EC l (PlotLines x y)
- setShapes :: [PointShape] -> EC l ()
- setColors :: [AlphaColour Double] -> EC l ()
- takeShape :: EC l PointShape
- takeColor :: EC l (AlphaColour Double)
- plotRight :: ToPlot p => EC (LayoutLR x y1 y2) (p x y2) -> EC (LayoutLR x y1 y2) ()
- plotLeft :: ToPlot p => EC (LayoutLR x y1 y2) (p x y1) -> EC (LayoutLR x y1 y2) ()
- plot :: ToPlot p => EC (Layout x y) (p x y) -> EC (Layout x y) ()
- liftCState :: State CState a -> EC l a
- liftEC :: Default l1 => EC l1 a -> EC l2 l1
- execEC :: Default l => EC l a -> l
- shapes :: Lens' CState [PointShape]
- colors :: Lens' CState [AlphaColour Double]
- type EC l a = StateT l (State CState) a
- data CState
- layoutlr_foreground :: Settable f => (AlphaColour Double -> f (AlphaColour Double)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_all_font_styles :: Settable f => (FontStyle -> f FontStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_axes_title_styles :: Settable f => (FontStyle -> f FontStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_axes_styles :: Settable f => (AxisStyle -> f AxisStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layout_foreground :: Settable f => (AlphaColour Double -> f (AlphaColour Double)) -> Layout x y -> f (Layout x y)
- layout_all_font_styles :: Settable f => (FontStyle -> f FontStyle) -> Layout x y -> f (Layout x y)
- layout_axes_title_styles :: Settable f => (FontStyle -> f FontStyle) -> Layout x y -> f (Layout x y)
- layout_axes_styles :: Settable f => (AxisStyle -> f AxisStyle) -> Layout x y -> f (Layout x y)
- slayouts_layouts :: Functor f => ([StackedLayout x1] -> f [StackedLayout x2]) -> StackedLayouts x1 -> f (StackedLayouts x2)
- slayouts_compress_legend :: Functor f => (Bool -> f Bool) -> StackedLayouts x -> f (StackedLayouts x)
- laxis_title_style :: Functor f => (FontStyle -> f FontStyle) -> LayoutAxis x -> f (LayoutAxis x)
- laxis_title :: Functor f => (String -> f String) -> LayoutAxis x -> f (LayoutAxis x)
- laxis_style :: Functor f => (AxisStyle -> f AxisStyle) -> LayoutAxis x -> f (LayoutAxis x)
- laxis_reverse :: Functor f => (Bool -> f Bool) -> LayoutAxis x -> f (LayoutAxis x)
- laxis_override :: Functor f => ((AxisData x -> AxisData x) -> f (AxisData x -> AxisData x)) -> LayoutAxis x -> f (LayoutAxis x)
- laxis_generate :: Functor f => (AxisFn x -> f (AxisFn x)) -> LayoutAxis x -> f (LayoutAxis x)
- layoutlr_x_axis :: Functor f => (LayoutAxis x -> f (LayoutAxis x)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_top_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_title_style :: Functor f => (FontStyle -> f FontStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_title :: Functor f => (String -> f String) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_right_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_right_axis :: Functor f => (LayoutAxis y2 -> f (LayoutAxis y2)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_plots :: Functor f => ([Either (Plot x y1) (Plot x y2)] -> f [Either (Plot x y1) (Plot x y2)]) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_plot_background :: Functor f => (Maybe FillStyle -> f (Maybe FillStyle)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_margin :: Functor f => (Double -> f Double) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_legend :: Functor f => (Maybe LegendStyle -> f (Maybe LegendStyle)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_left_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_left_axis :: Functor f => (LayoutAxis y1 -> f (LayoutAxis y1)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_grid_last :: Functor f => (Bool -> f Bool) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_bottom_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layoutlr_background :: Functor f => (FillStyle -> f FillStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2)
- layout_y_axis :: Functor f => (LayoutAxis y -> f (LayoutAxis y)) -> Layout x y -> f (Layout x y)
- layout_x_axis :: Functor f => (LayoutAxis x -> f (LayoutAxis x)) -> Layout x y -> f (Layout x y)
- layout_top_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> Layout x y -> f (Layout x y)
- layout_title_style :: Functor f => (FontStyle -> f FontStyle) -> Layout x y -> f (Layout x y)
- layout_title :: Functor f => (String -> f String) -> Layout x y -> f (Layout x y)
- layout_right_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> Layout x y -> f (Layout x y)
- layout_plots :: Functor f => ([Plot x y] -> f [Plot x y]) -> Layout x y -> f (Layout x y)
- layout_plot_background :: Functor f => (Maybe FillStyle -> f (Maybe FillStyle)) -> Layout x y -> f (Layout x y)
- layout_margin :: Functor f => (Double -> f Double) -> Layout x y -> f (Layout x y)
- layout_legend :: Functor f => (Maybe LegendStyle -> f (Maybe LegendStyle)) -> Layout x y -> f (Layout x y)
- layout_left_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> Layout x y -> f (Layout x y)
- layout_grid_last :: Functor f => (Bool -> f Bool) -> Layout x y -> f (Layout x y)
- layout_bottom_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> Layout x y -> f (Layout x y)
- layout_background :: Functor f => (FillStyle -> f FillStyle) -> Layout x y -> f (Layout x y)
- renderStackedLayouts :: Ord x => StackedLayouts x -> Renderable ()
- layoutLRToGrid :: (Ord x, Ord yl, Ord yr) => LayoutLR x yl yr -> Grid (Renderable (LayoutPick x yl yr))
- layoutLRToRenderable :: (Ord x, Ord yl, Ord yr) => LayoutLR x yl yr -> Renderable (LayoutPick x yl yr)
- layoutToGrid :: (Ord x, Ord y) => Layout x y -> Grid (Renderable (LayoutPick x y y))
- layoutToRenderable :: (Ord x, Ord y) => Layout x y -> Renderable (LayoutPick x y y)
- type MAxisFn t = [t] -> Maybe (AxisData t)
- data LayoutAxis x = LayoutAxis {
- _laxis_title_style :: FontStyle
- _laxis_title :: String
- _laxis_style :: AxisStyle
- _laxis_generate :: AxisFn x
- _laxis_override :: AxisData x -> AxisData x
- _laxis_reverse :: Bool
- data LayoutPick x y1 y2
- = LayoutPick_Legend String
- | LayoutPick_Title String
- | LayoutPick_XTopAxisTitle String
- | LayoutPick_XBottomAxisTitle String
- | LayoutPick_YLeftAxisTitle String
- | LayoutPick_YRightAxisTitle String
- | LayoutPick_PlotArea x y1 y2
- | LayoutPick_XTopAxis x
- | LayoutPick_XBottomAxis x
- | LayoutPick_YLeftAxis y1
- | LayoutPick_YRightAxis y2
- data Layout x y = Layout {
- _layout_background :: FillStyle
- _layout_plot_background :: Maybe FillStyle
- _layout_title :: String
- _layout_title_style :: FontStyle
- _layout_x_axis :: LayoutAxis x
- _layout_top_axis_visibility :: AxisVisibility
- _layout_bottom_axis_visibility :: AxisVisibility
- _layout_y_axis :: LayoutAxis y
- _layout_left_axis_visibility :: AxisVisibility
- _layout_right_axis_visibility :: AxisVisibility
- _layout_plots :: [Plot x y]
- _layout_legend :: Maybe LegendStyle
- _layout_margin :: Double
- _layout_grid_last :: Bool
- data LayoutLR x y1 y2 = LayoutLR {
- _layoutlr_background :: FillStyle
- _layoutlr_plot_background :: Maybe FillStyle
- _layoutlr_title :: String
- _layoutlr_title_style :: FontStyle
- _layoutlr_x_axis :: LayoutAxis x
- _layoutlr_top_axis_visibility :: AxisVisibility
- _layoutlr_bottom_axis_visibility :: AxisVisibility
- _layoutlr_left_axis :: LayoutAxis y1
- _layoutlr_left_axis_visibility :: AxisVisibility
- _layoutlr_right_axis :: LayoutAxis y2
- _layoutlr_right_axis_visibility :: AxisVisibility
- _layoutlr_plots :: [Either (Plot x y1) (Plot x y2)]
- _layoutlr_legend :: Maybe LegendStyle
- _layoutlr_margin :: Double
- _layoutlr_grid_last :: Bool
- data StackedLayout x where
- data StackedLayouts x = StackedLayouts {}
- plot_hist_values :: Functor f => ([x] -> f [x]) -> PlotHist x y -> f (PlotHist x y)
- plot_hist_title :: Functor f => (String -> f String) -> PlotHist x y -> f (PlotHist x y)
- plot_hist_range :: Functor f => (Maybe (x, x) -> f (Maybe (x, x))) -> PlotHist x y -> f (PlotHist x y)
- plot_hist_norm_func :: Functor f => ((Double -> Int -> y1) -> f (Double -> Int -> y2)) -> PlotHist x y1 -> f (PlotHist x y2)
- plot_hist_no_zeros :: Functor f => (Bool -> f Bool) -> PlotHist x y -> f (PlotHist x y)
- plot_hist_line_style :: Functor f => (LineStyle -> f LineStyle) -> PlotHist x y -> f (PlotHist x y)
- plot_hist_fill_style :: Functor f => (FillStyle -> f FillStyle) -> PlotHist x y -> f (PlotHist x y)
- plot_hist_drop_lines :: Functor f => (Bool -> f Bool) -> PlotHist x y -> f (PlotHist x y)
- plot_hist_bins :: Functor f => (Int -> f Int) -> PlotHist x y -> f (PlotHist x y)
- histToPlot :: (RealFrac x, Num y, Ord y) => PlotHist x y -> Plot x y
- defaultNormedPlotHist :: PlotHist x Double
- defaultFloatPlotHist :: PlotHist x Double
- defaultPlotHist :: PlotHist x Int
- data PlotHist x y = PlotHist {
- _plot_hist_title :: String
- _plot_hist_bins :: Int
- _plot_hist_values :: [x]
- _plot_hist_no_zeros :: Bool
- _plot_hist_range :: Maybe (x, x)
- _plot_hist_drop_lines :: Bool
- _plot_hist_fill_style :: FillStyle
- _plot_hist_line_style :: LineStyle
- _plot_hist_norm_func :: Double -> Int -> y
- area_spots_4d_values :: Functor f => ([(x1, y1, z1, t1)] -> f [(x2, y2, z2, t2)]) -> AreaSpots4D z1 t1 x1 y1 -> f (AreaSpots4D z2 t2 x2 y2)
- area_spots_4d_title :: Functor f => (String -> f String) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y)
- area_spots_4d_palette :: Functor f => ([Colour Double] -> f [Colour Double]) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y)
- area_spots_4d_opacity :: Functor f => (Double -> f Double) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y)
- area_spots_4d_max_radius :: Functor f => (Double -> f Double) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y)
- area_spots_4d_linethick :: Functor f => (Double -> f Double) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y)
- area_spots_values :: Functor f => ([(x1, y1, z1)] -> f [(x2, y2, z2)]) -> AreaSpots z1 x1 y1 -> f (AreaSpots z2 x2 y2)
- area_spots_title :: Functor f => (String -> f String) -> AreaSpots z x y -> f (AreaSpots z x y)
- area_spots_opacity :: Functor f => (Double -> f Double) -> AreaSpots z x y -> f (AreaSpots z x y)
- area_spots_max_radius :: Functor f => (Double -> f Double) -> AreaSpots z x y -> f (AreaSpots z x y)
- area_spots_linethick :: Functor f => (Double -> f Double) -> AreaSpots z x y -> f (AreaSpots z x y)
- area_spots_linecolour :: Functor f => (AlphaColour Double -> f (AlphaColour Double)) -> AreaSpots z x y -> f (AreaSpots z x y)
- area_spots_fillcolour :: Functor f => (Colour Double -> f (Colour Double)) -> AreaSpots z x y -> f (AreaSpots z x y)
- data AreaSpots z x y = AreaSpots {}
- data AreaSpots4D z t x y = AreaSpots4D {}
- plot_bars_values :: Functor f => ([(x1, [y])] -> f [(x2, [y])]) -> PlotBars x1 y -> f (PlotBars x2 y)
- plot_bars_titles :: Functor f => ([String] -> f [String]) -> PlotBars x y -> f (PlotBars x y)
- plot_bars_style :: Functor f => (PlotBarsStyle -> f PlotBarsStyle) -> PlotBars x y -> f (PlotBars x y)
- plot_bars_spacing :: Functor f => (PlotBarsSpacing -> f PlotBarsSpacing) -> PlotBars x y -> f (PlotBars x y)
- plot_bars_singleton_width :: Functor f => (Double -> f Double) -> PlotBars x y -> f (PlotBars x y)
- plot_bars_reference :: Functor f => (y -> f y) -> PlotBars x y -> f (PlotBars x y)
- plot_bars_item_styles :: Functor f => ([(FillStyle, Maybe LineStyle)] -> f [(FillStyle, Maybe LineStyle)]) -> PlotBars x y -> f (PlotBars x y)
- plot_bars_alignment :: Functor f => (PlotBarsAlignment -> f PlotBarsAlignment) -> PlotBars x y -> f (PlotBars x y)
- plotBars :: BarsPlotValue y => PlotBars x y -> Plot x y
- class PlotValue a => BarsPlotValue a where
- data PlotBarsStyle
- data PlotBarsSpacing
- data PlotBarsAlignment
- data PlotBars x y = PlotBars {}
- plotVectorField :: (PlotValue x, PlotValue y) => PlotVectors x y -> Plot x y
- plot_vectors_values :: Functor f => ([((x, y), (x, y))] -> f [((x, y), (x, y))]) -> PlotVectors x y -> f (PlotVectors x y)
- plot_vectors_title :: Functor f => (String -> f String) -> PlotVectors x y -> f (PlotVectors x y)
- plot_vectors_style :: Functor f => (VectorStyle -> f VectorStyle) -> PlotVectors x y -> f (PlotVectors x y)
- plot_vectors_scale :: Functor f => (Double -> f Double) -> PlotVectors x y -> f (PlotVectors x y)
- plot_vectors_mapf :: Functor f => (((x, y) -> (x, y)) -> f ((x, y) -> (x, y))) -> PlotVectors x y -> f (PlotVectors x y)
- plot_vectors_grid :: Functor f => ([(x, y)] -> f [(x, y)]) -> PlotVectors x y -> f (PlotVectors x y)
- vector_line_style :: Lens' VectorStyle LineStyle
- vector_head_style :: Lens' VectorStyle PointStyle
- data PlotVectors x y = PlotVectors {
- _plot_vectors_title :: String
- _plot_vectors_style :: VectorStyle
- _plot_vectors_scale :: Double
- _plot_vectors_grid :: [(x, y)]
- _plot_vectors_mapf :: (x, y) -> (x, y)
- _plot_vectors_values :: [((x, y), (x, y))]
- data VectorStyle = VectorStyle {}
- scaledIntAxis :: (Integral i, PlotValue i) => LinearAxisParams i -> (i, i) -> AxisFn i
- autoScaledIntAxis :: (Integral i, PlotValue i) => LinearAxisParams i -> AxisFn i
- defaultIntAxis :: Show a => LinearAxisParams a
- loga_labelf :: (Profunctor p, Functor f) => p ([a1] -> [String]) (f ([a2] -> [String])) -> p (LogAxisParams a1) (f (LogAxisParams a2))
- la_nTicks :: Functor f => (Int -> f Int) -> LinearAxisParams a -> f (LinearAxisParams a)
- la_nLabels :: Functor f => (Int -> f Int) -> LinearAxisParams a -> f (LinearAxisParams a)
- la_labelf :: Functor f => (([a1] -> [String]) -> f ([a2] -> [String])) -> LinearAxisParams a1 -> f (LinearAxisParams a2)
- autoScaledLogAxis :: RealFloat a => LogAxisParams a -> AxisFn a
- autoSteps :: Int -> [Double] -> [Double]
- autoScaledAxis :: RealFloat a => LinearAxisParams a -> AxisFn a
- scaledAxis :: RealFloat a => LinearAxisParams a -> (a, a) -> AxisFn a
- newtype Percent = Percent {}
- newtype LogValue = LogValue Double
- data LinearAxisParams a = LinearAxisParams {
- _la_labelf :: [a] -> [String]
- _la_nLabels :: Int
- _la_nTicks :: Int
- data LogAxisParams a = LogAxisParams {
- _loga_labelf :: [a] -> [String]
- autoIndexAxis :: Integral i => [String] -> [i] -> AxisData i
- addIndexes :: [a] -> [(PlotIndex, a)]
- newtype PlotIndex = PlotIndex {
- plotindex_i :: Int
- autoTimeValueAxis :: TimeValue t => AxisFn t
- years :: TimeSeq
- months :: TimeSeq
- days :: TimeSeq
- timeValueAxis :: TimeValue t => TimeSeq -> TimeSeq -> TimeLabelFn -> TimeLabelAlignment -> TimeSeq -> TimeLabelFn -> TimeLabelAlignment -> AxisFn t
- class TimeValue t where
- type TimeSeq = UTCTime -> ([UTCTime], [UTCTime])
- type TimeLabelFn = UTCTime -> String
- data TimeLabelAlignment
- unitAxis :: AxisData ()
- axis_line_style :: Lens' AxisStyle LineStyle
- axis_label_style :: Lens' AxisStyle FontStyle
- axis_label_gap :: Lens' AxisStyle Double
- axis_grid_style :: Lens' AxisStyle LineStyle
- axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> AxisData x -> f (AxisData x)
- axis_viewport :: Functor f => ((Range -> x -> Double) -> f (Range -> x -> Double)) -> AxisData x -> f (AxisData x)
- axis_tropweiv :: Functor f => ((Range -> Double -> x) -> f (Range -> Double -> x)) -> AxisData x -> f (AxisData x)
- axis_ticks :: Functor f => ([(x, Double)] -> f [(x, Double)]) -> AxisData x -> f (AxisData x)
- axis_labels :: Functor f => ([[(x, String)]] -> f [[(x, String)]]) -> AxisData x -> f (AxisData x)
- axis_grid :: Functor f => ([x] -> f [x]) -> AxisData x -> f (AxisData x)
- axis_show_ticks :: Lens' AxisVisibility Bool
- axis_show_line :: Lens' AxisVisibility Bool
- axis_show_labels :: Lens' AxisVisibility Bool
- invLinMap :: (Double -> a) -> (a -> Double) -> (a, a) -> Range -> Double -> a
- linMap :: (a -> Double) -> (a, a) -> Range -> a -> Double
- invmap :: PlotValue x => (x, x) -> Range -> Double -> x
- vmap :: PlotValue x => (x, x) -> Range -> x -> Double
- defaultGridLineStyle :: LineStyle
- defaultAxisLineStyle :: LineStyle
- makeAxis' :: Ord x => (x -> Double) -> (Double -> x) -> ([x] -> [String]) -> ([x], [x], [x]) -> AxisData x
- makeAxis :: PlotValue x => ([x] -> [String]) -> ([x], [x], [x]) -> AxisData x
- renderAxisGrid :: RectSize -> AxisT z -> BackendProgram ()
- axisOverhang :: Ord x => AxisT x -> BackendProgram (Double, Double)
- axisLabelsOverride :: [(x, String)] -> AxisData x -> AxisData x
- axisGridAtLabels :: AxisData x -> AxisData x
- axisGridAtBigTicks :: AxisData x -> AxisData x
- axisGridAtTicks :: AxisData x -> AxisData x
- axisGridHide :: AxisData x -> AxisData x
- axisToRenderable :: AxisT x -> Renderable x
- class Ord a => PlotValue a where
- data AxisVisibility = AxisVisibility {}
- data AxisData x = AxisData {
- _axis_visibility :: AxisVisibility
- _axis_viewport :: Range -> x -> Double
- _axis_tropweiv :: Range -> Double -> x
- _axis_ticks :: [(x, Double)]
- _axis_labels :: [[(x, String)]]
- _axis_grid :: [x]
- _axis_line_style :: AxisStyle -> LineStyle
- _axis_label_style :: AxisStyle -> FontStyle
- _axis_grid_style :: AxisStyle -> LineStyle
- _axis_label_gap :: AxisStyle -> Double
- type AxisFn x = [x] -> AxisData x
- data AxisT x = AxisT RectEdge AxisStyle Bool (AxisData x)
- legend_position :: Lens' LegendStyle LegendPosition
- legend_plot_size :: Lens' LegendStyle Double
- legend_orientation :: Lens' LegendStyle LegendOrientation
- legend_margin :: Lens' LegendStyle Double
- legend_label_style :: Lens' LegendStyle FontStyle
- legendToRenderable :: Legend x y -> Renderable String
- data LegendStyle = LegendStyle {}
- data LegendOrientation
- data LegendPosition
- pitem_value :: Lens' PieItem Double
- pitem_offset :: Lens' PieItem Double
- pitem_label :: Lens' PieItem String
- pie_start_angle :: Lens' PieChart Double
- pie_label_style :: Lens' PieChart FontStyle
- pie_label_line_style :: Lens' PieChart LineStyle
- pie_data :: Lens' PieChart [PieItem]
- pie_colors :: Lens' PieChart [AlphaColour Double]
- pie_title_style :: Lens' PieLayout FontStyle
- pie_title :: Lens' PieLayout String
- pie_plot :: Lens' PieLayout PieChart
- pie_margin :: Lens' PieLayout Double
- pie_background :: Lens' PieLayout FillStyle
- pieToRenderable :: PieLayout -> Renderable (PickFn a)
- pieChartToRenderable :: PieChart -> Renderable (PickFn a)
- data PieLayout = PieLayout {}
- data PieChart = PieChart {}
- data PieItem = PieItem {}
- plot_annotation_vanchor :: Functor f => (VTextAnchor -> f VTextAnchor) -> PlotAnnotation x y -> f (PlotAnnotation x y)
- plot_annotation_values :: Functor f => ([(x1, y1, String)] -> f [(x2, y2, String)]) -> PlotAnnotation x1 y1 -> f (PlotAnnotation x2 y2)
- plot_annotation_style :: Functor f => (FontStyle -> f FontStyle) -> PlotAnnotation x y -> f (PlotAnnotation x y)
- plot_annotation_hanchor :: Functor f => (HTextAnchor -> f HTextAnchor) -> PlotAnnotation x y -> f (PlotAnnotation x y)
- plot_annotation_background :: Functor f => (Rectangle -> f Rectangle) -> PlotAnnotation x y -> f (PlotAnnotation x y)
- plot_annotation_angle :: Functor f => (Double -> f Double) -> PlotAnnotation x y -> f (PlotAnnotation x y)
- data PlotAnnotation x y = PlotAnnotation {}
- rect_minsize :: Lens' Rectangle RectSize
- rect_lineStyle :: Lens' Rectangle (Maybe LineStyle)
- rect_fillStyle :: Lens' Rectangle (Maybe FillStyle)
- rect_cornerStyle :: Lens' Rectangle RectCornerStyle
- drawRectangle :: Point -> Rectangle -> BackendProgram (PickFn a)
- rectangleToRenderable :: Rectangle -> Renderable a
- rlabel :: FontStyle -> HTextAnchor -> VTextAnchor -> Double -> String -> Renderable String
- label :: FontStyle -> HTextAnchor -> VTextAnchor -> String -> Renderable String
- embedRenderable :: BackendProgram (Renderable a) -> Renderable a
- fillBackground :: FillStyle -> Renderable a -> Renderable a
- addMargins :: (Double, Double, Double, Double) -> Renderable a -> Renderable a
- mapPickFn :: (a -> b) -> Renderable a -> Renderable b
- mapMaybePickFn :: (a -> Maybe b) -> Renderable a -> Renderable b
- setPickFn :: PickFn b -> Renderable a -> Renderable b
- spacer1 :: Renderable a -> Renderable b
- spacer :: RectSize -> Renderable a
- emptyRenderable :: Renderable a
- nullPickFn :: PickFn a
- type PickFn a = Point -> Maybe a
- data Renderable a = Renderable {
- minsize :: BackendProgram RectSize
- render :: RectSize -> BackendProgram (PickFn a)
- class ToRenderable a where
- data RectCornerStyle
- data Rectangle = Rectangle {}
- plot_candle_width :: Functor f => (Double -> f Double) -> PlotCandle x y -> f (PlotCandle x y)
- plot_candle_values :: Functor f => ([Candle x1 y1] -> f [Candle x2 y2]) -> PlotCandle x1 y1 -> f (PlotCandle x2 y2)
- plot_candle_title :: Functor f => (String -> f String) -> PlotCandle x y -> f (PlotCandle x y)
- plot_candle_tick_length :: Functor f => (Double -> f Double) -> PlotCandle x y -> f (PlotCandle x y)
- plot_candle_rise_fill_style :: Functor f => (FillStyle -> f FillStyle) -> PlotCandle x y -> f (PlotCandle x y)
- plot_candle_line_style :: Functor f => (LineStyle -> f LineStyle) -> PlotCandle x y -> f (PlotCandle x y)
- plot_candle_fill :: Functor f => (Bool -> f Bool) -> PlotCandle x y -> f (PlotCandle x y)
- plot_candle_fall_fill_style :: Functor f => (FillStyle -> f FillStyle) -> PlotCandle x y -> f (PlotCandle x y)
- plot_candle_centre :: Functor f => (Double -> f Double) -> PlotCandle x y -> f (PlotCandle x y)
- data PlotCandle x y = PlotCandle {}
- data Candle x y = Candle {
- candle_x :: x
- candle_low :: y
- candle_open :: y
- candle_mid :: y
- candle_close :: y
- candle_high :: y
- plot_errbars_values :: Functor f => ([ErrPoint x1 y1] -> f [ErrPoint x2 y2]) -> PlotErrBars x1 y1 -> f (PlotErrBars x2 y2)
- plot_errbars_title :: Functor f => (String -> f String) -> PlotErrBars x y -> f (PlotErrBars x y)
- plot_errbars_tick_length :: Functor f => (Double -> f Double) -> PlotErrBars x y -> f (PlotErrBars x y)
- plot_errbars_overhang :: Functor f => (Double -> f Double) -> PlotErrBars x y -> f (PlotErrBars x y)
- plot_errbars_line_style :: Functor f => (LineStyle -> f LineStyle) -> PlotErrBars x y -> f (PlotErrBars x y)
- symErrPoint :: (Num a, Num b) => a -> b -> a -> b -> ErrPoint a b
- data ErrValue x = ErrValue {}
- data ErrPoint x y = ErrPoint {}
- data PlotErrBars x y = PlotErrBars {}
- plot_fillbetween_values :: Functor f => ([(x1, (y1, y1))] -> f [(x2, (y2, y2))]) -> PlotFillBetween x1 y1 -> f (PlotFillBetween x2 y2)
- plot_fillbetween_title :: Functor f => (String -> f String) -> PlotFillBetween x y -> f (PlotFillBetween x y)
- plot_fillbetween_style :: Functor f => (FillStyle -> f FillStyle) -> PlotFillBetween x y -> f (PlotFillBetween x y)
- data PlotFillBetween x y = PlotFillBetween {
- _plot_fillbetween_title :: String
- _plot_fillbetween_style :: FillStyle
- _plot_fillbetween_values :: [(x, (y, y))]
- plot_hidden_y_values :: Functor f => ([y1] -> f [y2]) -> PlotHidden x y1 -> f (PlotHidden x y2)
- plot_hidden_x_values :: Functor f => ([x1] -> f [x2]) -> PlotHidden x1 y -> f (PlotHidden x2 y)
- data PlotHidden x y = PlotHidden {
- _plot_hidden_x_values :: [x]
- _plot_hidden_y_values :: [y]
- plot_lines_values :: Functor f => ([[(x, y)]] -> f [[(x, y)]]) -> PlotLines x y -> f (PlotLines x y)
- plot_lines_title :: Functor f => (String -> f String) -> PlotLines x y -> f (PlotLines x y)
- plot_lines_style :: Functor f => (LineStyle -> f LineStyle) -> PlotLines x y -> f (PlotLines x y)
- plot_lines_limit_values :: Functor f => ([[(Limit x, Limit y)]] -> f [[(Limit x, Limit y)]]) -> PlotLines x y -> f (PlotLines x y)
- vlinePlot :: String -> LineStyle -> a -> Plot a b
- hlinePlot :: String -> LineStyle -> b -> Plot a b
- defaultPlotLineStyle :: LineStyle
- data PlotLines x y = PlotLines {
- _plot_lines_title :: String
- _plot_lines_style :: LineStyle
- _plot_lines_values :: [[(x, y)]]
- _plot_lines_limit_values :: [[(Limit x, Limit y)]]
- plot_points_values :: Functor f => ([(x1, y1)] -> f [(x2, y2)]) -> PlotPoints x1 y1 -> f (PlotPoints x2 y2)
- plot_points_title :: Functor f => (String -> f String) -> PlotPoints x y -> f (PlotPoints x y)
- plot_points_style :: Functor f => (PointStyle -> f PointStyle) -> PlotPoints x y -> f (PlotPoints x y)
- data PlotPoints x y = PlotPoints {
- _plot_points_title :: String
- _plot_points_style :: PointStyle
- _plot_points_values :: [(x, y)]
- plot_render :: Functor f => ((PointMapFn x y -> BackendProgram ()) -> f (PointMapFn x y -> BackendProgram ())) -> Plot x y -> f (Plot x y)
- plot_legend :: Functor f => ([(String, Rect -> BackendProgram ())] -> f [(String, Rect -> BackendProgram ())]) -> Plot x y -> f (Plot x y)
- plot_all_points :: Functor f => (([x], [y]) -> f ([x], [y])) -> Plot x y -> f (Plot x y)
- mapXY :: PointMapFn x y -> (x, y) -> Point
- joinPlot :: Plot x y -> Plot x y -> Plot x y
- _plot_render :: Plot x y -> PointMapFn x y -> BackendProgram ()
- _plot_legend :: Plot x y -> [(String, Rect -> BackendProgram ())]
- _plot_all_points :: Plot x y -> ([x], [y])
- class ToPlot (a :: * -> * -> *) where
- point_shape :: Lens' PointStyle PointShape
- point_radius :: Lens' PointStyle Double
- point_color :: Lens' PointStyle (AlphaColour Double)
- point_border_width :: Lens' PointStyle Double
- point_border_color :: Lens' PointStyle (AlphaColour Double)
- solidFillStyle :: AlphaColour Double -> FillStyle
- arrows :: Double -> Double -> Double -> AlphaColour Double -> PointStyle
- stars :: Double -> Double -> AlphaColour Double -> PointStyle
- exes :: Double -> Double -> AlphaColour Double -> PointStyle
- plusses :: Double -> Double -> AlphaColour Double -> PointStyle
- filledPolygon :: Double -> Int -> Bool -> AlphaColour Double -> PointStyle
- hollowPolygon :: Double -> Double -> Int -> Bool -> AlphaColour Double -> PointStyle
- hollowCircles :: Double -> Double -> AlphaColour Double -> PointStyle
- filledCircles :: Double -> AlphaColour Double -> PointStyle
- dashedLine :: Double -> [Double] -> AlphaColour Double -> LineStyle
- solidLine :: Double -> AlphaColour Double -> LineStyle
- defaultColorSeq :: [AlphaColour Double]
- drawPoint :: PointStyle -> Point -> BackendProgram ()
- textDimension :: String -> BackendProgram RectSize
- textDrawRect :: HTextAnchor -> VTextAnchor -> Point -> String -> BackendProgram Rect
- drawTextsR :: HTextAnchor -> VTextAnchor -> Double -> Point -> String -> BackendProgram ()
- drawTextR :: HTextAnchor -> VTextAnchor -> Double -> Point -> String -> BackendProgram ()
- drawTextA :: HTextAnchor -> VTextAnchor -> Point -> String -> BackendProgram ()
- fillPointPath :: [Point] -> BackendProgram ()
- strokePointPath :: [Point] -> BackendProgram ()
- alignFillPoint :: Point -> BackendProgram Point
- alignStrokePoint :: Point -> BackendProgram Point
- alignFillPoints :: [Point] -> BackendProgram [Point]
- alignStrokePoints :: [Point] -> BackendProgram [Point]
- alignFillPath :: Path -> BackendProgram Path
- alignStrokePath :: Path -> BackendProgram Path
- alignPath :: (Point -> Point) -> Path -> Path
- withDefaultStyle :: BackendProgram a -> BackendProgram a
- withPointStyle :: PointStyle -> BackendProgram a -> BackendProgram a
- withScaleY :: Double -> BackendProgram a -> BackendProgram a
- withScaleX :: Double -> BackendProgram a -> BackendProgram a
- withScale :: Vector -> BackendProgram a -> BackendProgram a
- withTranslation :: Point -> BackendProgram a -> BackendProgram a
- withRotation :: Double -> BackendProgram a -> BackendProgram a
- data PointShape
- data PointStyle = PointStyle {}
- getCoordAlignFn :: BackendProgram (Point -> Point)
- getPointAlignFn :: BackendProgram (Point -> Point)
- withClipRegion :: Rect -> BackendProgram a -> BackendProgram a
- withLineStyle :: LineStyle -> BackendProgram a -> BackendProgram a
- withFillStyle :: FillStyle -> BackendProgram a -> BackendProgram a
- withFontStyle :: FontStyle -> BackendProgram a -> BackendProgram a
- withTransform :: Matrix -> BackendProgram a -> BackendProgram a
- drawText :: Point -> String -> BackendProgram ()
- textSize :: String -> BackendProgram TextSize
- fillPath :: Path -> BackendProgram ()
- strokePath :: Path -> BackendProgram ()
- type BackendProgram a = Program ChartBackendInstr a
- fill_color :: Iso' FillStyle (AlphaColour Double)
- font_weight :: Lens' FontStyle FontWeight
- font_slant :: Lens' FontStyle FontSlant
- font_size :: Lens' FontStyle Double
- font_name :: Lens' FontStyle String
- font_color :: Lens' FontStyle (AlphaColour Double)
- line_width :: Lens' LineStyle Double
- line_join :: Lens' LineStyle LineJoin
- line_dashes :: Lens' LineStyle [Double]
- line_color :: Lens' LineStyle (AlphaColour Double)
- line_cap :: Lens' LineStyle LineCap
- vectorAlignmentFns :: AlignmentFns
- bitmapAlignmentFns :: AlignmentFns
- data LineCap
- data LineJoin
- data LineStyle = LineStyle {}
- data FontSlant
- data FontWeight
- data FontStyle = FontStyle {}
- data HTextAnchor
- data VTextAnchor
- data TextSize = TextSize {}
- newtype FillStyle = FillStyleSolid {}
- type AlignmentFn = Point -> Point
- data AlignmentFns = AlignmentFns {}
- invert :: Matrix -> Matrix
- adjoint :: Matrix -> Matrix
- scalarMultiply :: Double -> Matrix -> Matrix
- rotate :: Double -> Matrix -> Matrix
- scale :: Vector -> Matrix -> Matrix
- translate :: Vector -> Matrix -> Matrix
- identity :: Matrix
- translateP :: Vector -> Point -> Point
- scaleP :: Vector -> Point -> Point
- rotateP :: Double -> Point -> Point
- transformP :: Matrix -> Point -> Point
- makeLinesExplicit :: Path -> Path
- foldPath :: Monoid m => (Point -> m) -> (Point -> m) -> (Point -> Double -> Double -> Double -> m) -> (Point -> Double -> Double -> Double -> m) -> m -> Path -> m
- close :: Path
- arcNeg' :: Double -> Double -> Double -> Double -> Double -> Path
- arcNeg :: Point -> Double -> Double -> Double -> Path
- arc' :: Double -> Double -> Double -> Double -> Double -> Path
- arc :: Point -> Double -> Double -> Double -> Path
- lineTo' :: Double -> Double -> Path
- lineTo :: Point -> Path
- moveTo' :: Double -> Double -> Path
- moveTo :: Point -> Path
- rectPath :: Rect -> Path
- intersectRect :: Limit Rect -> Limit Rect -> Limit Rect
- within :: Point -> Rect -> Bool
- mkrect :: Point -> Point -> Point -> Point -> Rect
- psub :: Point -> Point -> Vector
- pvsub :: Point -> Vector -> Point
- pvadd :: Point -> Vector -> Point
- vscale :: Double -> Vector -> Vector
- vlen :: Vector -> Double
- vangle :: Vector -> Double
- pointToVec :: Point -> Vector
- data Point = Point {}
- data Vector = Vector {}
- data Limit a
- type PointMapFn x y = (Limit x, Limit y) -> Point
- data Rect = Rect Point Point
- data RectEdge
- type Range = (Double, Double)
- type RectSize = (Double, Double)
- data Path
- data Matrix = Matrix {}
- class ColourOps (f :: * -> *) where
- class AffineSpace (f :: * -> *) where
- data AlphaColour a
- data Colour a
- colourConvert :: (Fractional b, Real a) => Colour a -> Colour b
- black :: Num a => Colour a
- transparent :: Num a => AlphaColour a
- alphaColourConvert :: (Fractional b, Real a) => AlphaColour a -> AlphaColour b
- opaque :: Num a => Colour a -> AlphaColour a
- dissolve :: Num a => a -> AlphaColour a -> AlphaColour a
- withOpacity :: Num a => Colour a -> a -> AlphaColour a
- blend :: (Num a, AffineSpace f) => a -> f a -> f a -> f a
- atop :: Fractional a => AlphaColour a -> AlphaColour a -> AlphaColour a
- alphaChannel :: AlphaColour a -> a
- module Graphics.Rendering.Chart.Plot.Histogram
- buildPlots :: BaseSpace c ~ v => Axis b c n -> [StyledPlot b v n]
- r2AxisMain :: (Parseable (MainOpts (QDiagram b V2 Double Any)), Mainable (Axis b V2 Double)) => Axis b V2 Double -> IO ()
- class RenderAxis b (v :: * -> *) n where
- labelBars :: HasLabels a => [String] -> State a ()
- onBars :: (a -> State (PlotMods b V2 n) ()) -> State (MultiBarState b n a) ()
- multiBars :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f, Foldable g) => f a -> (a -> g n) -> State (MultiBarState b n a) () -> m ()
- runningBars :: Num n => State (MultiBarState b n a) ()
- stackedEqualBars :: Fractional n => n -> State (MultiBarState b n a) ()
- stackedBars :: Num n => State (MultiBarState b n a) ()
- groupedBars' :: Fractional n => n -> State (MultiBarState b n a) ()
- groupedBars :: Fractional n => State (MultiBarState b n a) ()
- floatingBarPlot :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) => f (n, n) -> State (Plot (BarPlot n) b) () -> m ()
- namedBarPlot' :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) => f (String, n) -> m ()
- namedBarPlot :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) => f (String, n) -> State (Plot (BarPlot n) b) () -> m ()
- barPlot' :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) => f n -> m ()
- barPlot :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) => f n -> State (Plot (BarPlot n) b) () -> m ()
- mkGroupedBars :: Fractional n => n -> BarLayout n -> [[n]] -> [BarPlot n]
- mkStackedEqualBars :: Fractional n => n -> BarLayout n -> [[n]] -> [BarPlot n]
- mkStackedBars :: Num n => BarLayout n -> [[n]] -> [BarPlot n]
- mkRunningBars :: Num n => BarLayout n -> [[(n, n)]] -> [BarPlot n]
- mkFloatingBars :: Foldable f => BarLayout n -> f (n, n) -> BarPlot n
- mkBars :: (Foldable f, Num n) => BarLayout n -> f n -> BarPlot n
- data BarLayout n
- class HasOrientation a => HasBarLayout a where
- data BarPlot n
- data MultiBarState b n a
- heatMapIndexed' :: (VectorLike V2 Int i, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) => i -> (i -> Double) -> m ()
- heatMapIndexed :: (VectorLike V2 Int i, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) => i -> (i -> Double) -> State (Plot (HeatMap b n) b) () -> m ()
- heatMap' :: (Foldable f, Foldable g, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) => f (g Double) -> m ()
- heatMap :: (Foldable f, Foldable g, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) => f (g Double) -> State (Plot (HeatMap b n) b) () -> m ()
- mkHeatMap :: (Renderable (Path V2 n) b, TypeableFloat n) => HeatMatrix -> HeatMap b n
- pathHeatRender :: (Renderable (Path V2 n) b, TypeableFloat n) => HeatMatrix -> ColourMap -> QDiagram b V2 n Any
- heatImage :: HeatMatrix -> ColourMap -> Image PixelRGB8
- pixelHeatRender' :: (Renderable (DImage n Embedded) b, TypeableFloat n) => Int -> HeatMatrix -> ColourMap -> QDiagram b V2 n Any
- pixelHeatRender :: (Renderable (DImage n Embedded) b, TypeableFloat n) => HeatMatrix -> ColourMap -> QDiagram b V2 n Any
- hmPoints :: IndexedTraversal' (V2 Int) HeatMatrix Double
- mkHeatMatrix' :: (Foldable f, Foldable g) => f (g Double) -> HeatMatrix
- mkHeatMatrix :: V2 Int -> (V2 Int -> Double) -> HeatMatrix
- data HeatMatrix
- data HeatMap b n
- class HasHeatMap (f :: * -> *) a b | a -> b where
- histogramPlotOf' :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, RealFrac n) => Fold s n -> s -> m ()
- histogramPlotOf :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, RealFrac n) => Fold s n -> s -> State (Plot (HistogramOptions n) b) () -> m ()
- histogramPlot' :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, Foldable f, RealFrac n) => f n -> m ()
- histogramPlot :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, Foldable f, RealFrac n) => f n -> State (Plot (HistogramOptions n) b) () -> m ()
- mkHistogramPlot :: (Foldable f, RealFrac n) => HistogramOptions n -> f n -> HistogramPlot n
- cdf :: NormalisationMethod
- cumilative :: NormalisationMethod
- pdf :: NormalisationMethod
- countDensity :: NormalisationMethod
- probability :: NormalisationMethod
- count :: NormalisationMethod
- mkComputedHistogram :: Foldable f => n -> n -> f n -> HistogramPlot n
- computedHistogram :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, Foldable f) => n -> n -> f n -> State (Plot (HistogramPlot n) b) () -> m ()
- data HistogramPlot n
- data NormalisationMethod
- data HistogramOptions n
- class HasOrientation a => HasHistogramOptions a where
- mkPathOf :: (PointLike v n p, OrderedField n) => Fold s t -> Fold t p -> s -> Path v n
- mkPath :: (PointLike v n p, OrderedField n, Foldable f, Foldable g) => g (f p) -> Path v n
- mkTrailOf :: (PointLike v n p, OrderedField n) => Fold s p -> s -> Located (Trail v n)
- mkTrail :: (PointLike v n p, OrderedField n, Foldable f) => f p -> Located (Trail v n)
- smoothLinePlot' :: (BaseSpace c ~ v, Foldable f, PointLike v n p, Plotable (Path v n) b, Fractional (v n), MonadState (Axis b c n) m) => f p -> m ()
- smoothLinePlot :: (BaseSpace c ~ v, Foldable f, Metric v, PointLike v n p, Plotable (Path v n) b, Fractional (v n), MonadState (Axis b c n) m) => f p -> State (Plot (Path v n) b) () -> m ()
- linePlot' :: (BaseSpace c ~ v, Metric v, Foldable f, PointLike v n p, Plotable (Path v n) b, MonadState (Axis b c n) m) => f p -> m ()
- linePlot :: (BaseSpace c ~ v, Metric v, Foldable f, PointLike v n p, Plotable (Path v n) b, MonadState (Axis b c n) m) => f p -> State (Plot (Path v n) b) () -> m ()
- pathPlot' :: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) => Path v n -> m ()
- pathPlot :: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) => Path v n -> State (Plot (Path v n) b) () -> m ()
- trailPlot' :: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) => Trail v n -> m ()
- trailPlot :: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) => Trail v n -> State (Plot (Path v n) b) () -> m ()
- wedgePlot :: (v ~ BaseSpace c, v ~ V2, PointLike v n (Polar n), MonadState (Axis b c n) m, Plotable (Wedge n) b) => Direction V2 n -> Angle n -> State (Plot (Wedge n) b) () -> m ()
- piePlot' :: (MonadState (Axis b Polar n) m, Plotable (Wedge n) b, Foldable f) => f n -> m ()
- piePlot :: (MonadState (Axis b Polar n) m, Plotable (Wedge n) b, Foldable f) => f a -> (a -> n) -> State (PieState b n a) () -> m ()
- wedgeKeys :: Num n => (a -> String) -> State (PieState b n a) ()
- onWedges :: (a -> State (Plot (Wedge n) b) ()) -> State (PieState b n a) ()
- mkWedge :: Num n => Direction V2 n -> Angle n -> Wedge n
- data Wedge n
- class HasWedge (f :: * -> *) a where
- data PieState b n a
- gscatterOptionsFor :: (InSpace v n a, HasScatterOptions f a d) => proxy d -> LensLike' f a (ScatterOptions v n d)
- gscatterPlot :: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable d, Foldable f) => f d -> (d -> p) -> State (Plot (ScatterOptions v n d) b) () -> m ()
- bubbleStyle :: (InSpace v n a, Settable f, HasScatterOptions f a (n, Point v n)) => LensLike' f a (n -> Style v n)
- bubbleTransform :: (InSpace v n a, HasScatterOptions f a (n, Point v n), Settable f) => LensLike' f a (n -> Transformation v n)
- bubbleOptions :: (InSpace v n a, HasScatterOptions f a (n, Point v n)) => LensLike' f a (BubbleOptions v n)
- bubblePlotOf' :: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable n) => Fold s (n, p) -> s -> State (Plot (BubbleOptions v n) b) () -> m ()
- bubblePlotOf :: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable n) => Fold s (n, p) -> s -> State (Plot (BubbleOptions v n) b) () -> m ()
- bubblePlot' :: (v ~ BaseSpace c, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Foldable f) => f (n, p) -> m ()
- bubblePlot :: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable n, Foldable f) => f (n, p) -> State (Plot (BubbleOptions v n) b) () -> m ()
- scatterPlotOf' :: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b) => Fold s p -> s -> m ()
- scatterPlotOf :: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b) => Fold s p -> s -> State (Plot (ScatterOptions v n (Point v n)) b) () -> m ()
- scatterPlot' :: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Foldable f) => f p -> m ()
- scatterPlot :: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Foldable f) => f p -> State (Plot (ScatterOptions v n (Point v n)) b) () -> m ()
- scatterOptions :: (InSpace v n a, HasScatterOptions f a (Point v n)) => LensLike' f a (ScatterOptions v n (Point v n))
- mkScatterOptions :: (PointLike v n p, Foldable f, Fractional n) => f a -> (a -> p) -> ScatterOptions v n a
- data ScatterPlot (v :: * -> *) n
- data ScatterOptions (v :: * -> *) n a
- class HasConnectingLine (f :: * -> *) a where
- class HasScatterOptions (f :: * -> *) a d where
- type BubbleOptions (v :: * -> *) n = ScatterOptions v n (n, Point v n)
- polarAxis :: (TypeableFloat n, Renderable (Text n) b, Renderable (Path V2 n) b) => Axis b Polar n
- thetaLabel :: Circle c => Lens' (Axis b c n) String
- thetaAxis :: Circle c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n)
- rMax :: Radial c => Lens' (Axis b c n) (Maybe n)
- rLabel :: Radial c => Lens' (Axis b c n) String
- rAxis :: Radial c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n)
- zMax :: R3 c => Lens' (Axis b c n) (Maybe n)
- zMin :: R3 c => Lens' (Axis b c n) (Maybe n)
- zLabel :: R3 c => Lens' (Axis b c n) String
- zAxis :: R3 c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n)
- yMax :: R2 c => Lens' (Axis b c n) (Maybe n)
- yMin :: R2 c => Lens' (Axis b c n) (Maybe n)
- yLabel :: R2 c => Lens' (Axis b c n) String
- yAxis :: R2 c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n)
- xMax :: R1 c => Lens' (Axis b c n) (Maybe n)
- xMin :: R1 c => Lens' (Axis b c n) (Maybe n)
- xLabel :: R1 c => Lens' (Axis b c n) String
- xAxis :: R1 c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n)
- r2Axis :: (TypeableFloat n, Renderable (Text n) b, Renderable (Path V2 n) b) => Axis b V2 n
- addPlotable' :: (InSpace (BaseSpace v) n p, MonadState (Axis b v n) m, Plotable p b) => p -> m ()
- addPlotable :: (InSpace (BaseSpace c) n p, MonadState (Axis b c n) m, Plotable p b) => p -> State (Plot p b) () -> m ()
- addPlot :: (InSpace (BaseSpace c) n p, MonadState (Axis b c n) m, Plotable p b) => Plot p b -> m ()
- colourBarRange :: Functor f => ((n, n) -> f (n, n)) -> Axis b v n -> f (Axis b v n)
- axisSize :: (HasLinearMap c, Num n, Ord n) => Lens' (Axis b c n) (SizeSpec c n)
- plotModifier :: BaseSpace c ~ v => Lens' (Axis b c n) (Endo (StyledPlot b v n))
- finalPlots :: BaseSpace c ~ v => Setter' (Axis b c n) (StyledPlot b v n)
- currentPlots :: BaseSpace c ~ v => Traversal' (Axis b c n) (DynamicPlot b v n)
- axisPlots :: BaseSpace c ~ v => Lens' (Axis b c n) [DynamicPlot b v n]
- axes :: (v ~ BaseSpace c, v ~ BaseSpace c') => Lens (Axis b c n) (Axis b c' n) (c (SingleAxis b v n)) (c' (SingleAxis b v n))
- data SingleAxis b (v :: * -> *) n
- type family BaseSpace (c :: * -> *) :: * -> *
- data Axis b (c :: * -> *) n
- pathColourBar :: (TypeableFloat n, Renderable (Path V2 n) b) => Int -> ColourMap -> QDiagram b V2 n Any
- gradientColourBar :: (TypeableFloat n, Renderable (Path V2 n) b) => ColourMap -> QDiagram b V2 n Any
- renderColourBar :: (TypeableFloat n, Renderable (Path V2 n) b) => ColourBar b n -> ColourMap -> (n, n) -> n -> QDiagram b V2 n Any
- addColourBar :: (TypeableFloat n, Renderable (Path V2 n) b) => BoundingBox V2 n -> ColourBar b n -> ColourMap -> (n, n) -> QDiagram b V2 n Any
- defColourBar :: (Renderable (Text n) b, Renderable (Path V2 n) b, TypeableFloat n) => ColourBar b n
- data ColourBar b n
- class HasColourBar a b | a -> b where
- majorTicksHelper :: (RealFrac n, Floating n) => [n] -> n -> (n, n) -> [n]
- minorTicksHelper :: Fractional n => Int -> [n] -> (n, n) -> [n]
- logMajorTicks :: (RealFrac n, Floating n) => n -> (n, n) -> [n]
- linearMajorTicks :: (RealFrac n, Floating n) => n -> (n, n) -> [n]
- minorTickPositions :: (HasMinorTicks f a, Settable f) => LensLike' f a [N a]
- majorTickPositions :: (HasMajorTicks f a, Settable f) => LensLike' f a [N a]
- hideTicks :: HasTicks Identity a => a -> a
- ticksVisible :: (HasTicks f a, Applicative f) => LensLike' f a Bool
- ticksStyle :: (HasTicks f a, Applicative f) => LensLike' f a (Style (V a) (N a))
- ticksAlign :: (HasTicks f a, Applicative f) => LensLike' f a TicksAlignment
- outsideTicks :: TicksAlignment
- insideTicks :: TicksAlignment
- centerTicks :: TicksAlignment
- centreTicks :: TicksAlignment
- autoTicks :: TicksAlignment
- data TicksAlignment
- data MajorTicks (v :: * -> *) n
- class HasMajorTicks (f :: * -> *) a where
- data MinorTicks (v :: * -> *) n
- class HasMinorTicks (f :: * -> *) a where
- data Ticks (v :: * -> *) n
- class (HasMinorTicks f a, HasMajorTicks f a) => HasTicks (f :: * -> *) a where
- gridLinesStyle :: (HasGridLines f a, Applicative f) => LensLike' f a (Style (V a) (N a))
- showGridLines :: (HasGridLines Identity a, MonadState a m) => m ()
- hideGridLines :: (HasGridLines Identity a, MonadState a m) => m ()
- gridLinesVisible :: (HasGridLines f a, Applicative f) => LensLike' f a Bool
- emptyGridLineFunction :: GridLineFunction n
- onTicksGridLineFunction :: GridLineFunction n
- type GridLineFunction n = [n] -> (n, n) -> [n]
- data MajorGridLines (v :: * -> *) n
- class HasMajorGridLines (f :: * -> *) a where
- data MinorGridLines (v :: * -> *) n
- class HasMinorGridLines (f :: * -> *) a where
- data GridLines (v :: * -> *) n
- class (HasMinorGridLines f a, HasMajorGridLines f a) => HasGridLines (f :: * -> *) a where
- atMajorTicks :: (n -> String) -> [n] -> (n, n) -> [(n, String)]
- tickLabelPositions :: (HasTickLabels f a b, Settable f) => LensLike' f a [(N a, String)]
- type TextFunction b (v :: * -> *) n = TextAlignment n -> String -> QDiagram b v n Any
- data AxisLabelPosition
- data AxisLabelPlacement
- data AxisLabel b (v :: * -> *) n
- class HasAxisLabel (f :: * -> *) a b | a -> b where
- data TickLabels b (v :: * -> *) n
- class HasTickLabels (f :: * -> *) a b | a -> b where
- drawTitle :: TypeableFloat n => BoundingBox V2 n -> Title b V2 n -> QDiagram b V2 n Any
- data Title b (v :: * -> *) n
- class HasTitle a b | a -> b where
- drawLegend :: (TypeableFloat n, Renderable (Path V2 n) b) => BoundingBox V2 n -> [(QDiagram b V2 n Any, String)] -> Legend b n -> QDiagram b V2 n Any
- class HasLegend a b | a -> b where
- styledPlotLegends :: Ord n => [StyledPlot b v n] -> [(QDiagram b v n Any, String)]
- singleStyledPlotLegend :: StyledPlot b v n -> [(n, QDiagram b v n Any, String)]
- renderStyledPlot :: TypeableFloat n => AxisSpec V2 n -> StyledPlot b V2 n -> QDiagram b V2 n Any
- styleDynamic :: PlotStyle b v n -> DynamicPlot b v n -> StyledPlot b v n
- styledPlot :: Typeable p => Traversal' (StyledPlot b (V p) (N p)) p
- dynamicPlotMods :: Functor f => (PlotMods b v n -> f (PlotMods b v n)) -> DynamicPlot b v n -> f (DynamicPlot b v n)
- dynamicPlot :: (Typeable p, Typeable b) => Traversal' (DynamicPlot b (V p) (N p)) (Plot p b)
- _DynamicPlot :: (Plotable p b, Typeable b) => Prism' (DynamicPlot b (V p) (N p)) (Plot p b)
- plotMods :: Functor f => (PlotMods b (V p) (N p) -> f (PlotMods b (V p) (N p))) -> Plot p b -> f (Plot p b)
- rawPlot :: SameSpace p p' => Lens (Plot p b) (Plot p' b) p p'
- mkPlot :: (Additive (V p), Num (N p)) => p -> Plot p b
- display :: (MonadState s m, HasVisibility a) => ASetter' s a -> m ()
- hide :: (MonadState s m, HasVisibility a) => ASetter' s a -> m ()
- specPoint :: (Applicative v, Additive v, Floating n) => AxisSpec v n -> Point v n -> Point v n
- scaleNum :: Floating n => (n, n) -> LogScale -> n -> n
- specTrans :: Functor f => (Transformation v n -> f (Transformation v n)) -> AxisSpec v n -> f (AxisSpec v n)
- specScale :: Functor f => (v LogScale -> f (v LogScale)) -> AxisSpec v n -> f (AxisSpec v n)
- specColourMap :: Functor f => (ColourMap -> f ColourMap) -> AxisSpec v n -> f (AxisSpec v n)
- specBounds :: Functor f => (v (n, n) -> f (v (n, n))) -> AxisSpec v n -> f (AxisSpec v n)
- class (Typeable p, Enveloped p) => Plotable p b where
- class HasVisibility a where
- data PlotMods b (v :: * -> *) n
- data DynamicPlot b (v :: * -> *) n where
- DynamicPlot :: DynamicPlot b v n
- data StyledPlot b (v :: * -> *) n
- addLegendEntry :: (HasPlotOptions Identity a b, MonadState a m) => LegendEntry b (V a) (N a) -> m ()
- key :: (HasPlotOptions Identity a b, MonadState a m, Num (N a)) => String -> m ()
- mkLegendEntry :: Num n => String -> LegendEntry b v n
- legendPrecedence :: Functor f => (n -> f n) -> LegendEntry b v n -> f (LegendEntry b v n)
- legendText :: Functor f => (String -> f String) -> LegendEntry b v n -> f (LegendEntry b v n)
- legendPicture :: Functor f => (LegendPic b v n -> f (LegendPic b v n)) -> LegendEntry b v n -> f (LegendEntry b v n)
- placeAgainst :: (InSpace V2 n a, SameSpace a b, Enveloped a, HasOrigin b, Alignable b) => a -> Placement -> n -> b -> b
- rightBelow :: Placement
- rightBottom :: Placement
- rightMid :: Placement
- rightTop :: Placement
- rightAbove :: Placement
- midBelow :: Placement
- midAbove :: Placement
- leftBelow :: Placement
- leftBottom :: Placement
- leftMid :: Placement
- leftTop :: Placement
- leftAbove :: Placement
- bottomRight :: Placement
- bottom :: Placement
- bottomLeft :: Placement
- right :: Placement
- left :: Placement
- topRight :: Placement
- top :: Placement
- topLeft :: Placement
- vertical :: HasOrientation a => Lens' a Bool
- horizontal :: HasOrientation a => Lens' a Bool
- orient :: HasOrientation o => o -> a -> a -> a
- data Orientation
- class HasOrientation a where
- class HasGap a where
- data Placement = Placement {}
- class HasPlacement a where
- data LegendPic b (v :: * -> *) n
- = DefaultLegendPic
- | CustomLegendPic (PlotStyle b v n -> QDiagram b v n Any)
- data LegendEntry b (v :: * -> *) n
- data PlotOptions b (v :: * -> *) n
- class HasPlotOptions (f :: * -> *) a b | a -> b where
- data AxisSpec (v :: * -> *) n = AxisSpec {
- _specBounds :: v (n, n)
- _specTrans :: Transformation v n
- _specScale :: v LogScale
- _specColourMap :: ColourMap
- (&~~) :: Monad m => s -> StateT s m a -> m s
- (&=) :: MonadState s m => ASetter' s b -> State b a -> m ()
- viridis :: ColourMap
- plasma :: ColourMap
- inferno :: ColourMap
- greys :: ColourMap
- toStops :: Fractional n => ColourMap -> [GradientStop n]
- alphaColourMap :: [(Rational, AlphaColour Double)] -> ColourMap
- colourMap :: [(Rational, Colour Double)] -> ColourMap
- colourList :: ColourMap -> [(Rational, AlphaColour Double)]
- cmTraverse :: IndexedTraversal' Rational ColourMap (AlphaColour Double)
- ixColour :: Rational -> Lens' ColourMap (AlphaColour Double)
- star' :: (InSpace V2 n t, TrailLike t) => n -> t
- plus :: (InSpace V2 n t, TrailLike t) => n -> t
- crossShape :: (InSpace V2 n t, TrailLike t) => n -> t
- diamond :: (InSpace V2 n t, TrailLike t) => n -> t
- asterisk :: OrderedField n => Int -> n -> Path V2 n
- lineMarkers :: OrderedField n => [Path V2 n]
- colours2 :: OrderedField n => [Colour n]
- colours1 :: OrderedField n => [Colour n]
- blackAndWhite :: (TypeableFloat n, Renderable (Path V2 n) b) => AxisStyle b V2 n
- vividColours :: (TypeableFloat n, Renderable (Path V2 n) b) => AxisStyle b V2 n
- fadedColours :: (TypeableFloat n, Renderable (Path V2 n) b) => AxisStyle b V2 n
- applyTextStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t
- applyAreaStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t
- applyMarkerStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t
- applyLineStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t
- data PlotStyle b (v :: * -> *) n
- class HasPlotStyle (f :: * -> *) a b | a -> b where
- class HasAxisStyle a b | a -> b where
- data ColourMap
- logDeform :: (InSpace v n a, Foldable v, Floating n, Deformable a a) => v LogScale -> a -> a
- logPoint :: (Additive v, Floating n) => v LogScale -> Point v n -> Point v n
- logNumber :: Floating a => LogScale -> a -> a
- calculateScaling :: (HasLinearMap v, OrderedField n, Applicative v) => v (AxisScaling n) -> BoundingBox v n -> (v (n, n), Transformation v n, Transformation v n)
- calculateBounds :: OrderedField n => AxisScaling n -> Maybe (n, n) -> (n, n)
- noExtend :: Num n => Extending n
- data ScaleMode
- data UniformScaleStrategy
- data AxisScaling n
- data Extending n
- = AbsoluteExtend n
- | RelativeExtend n
- class HasAxisScaling (f :: * -> *) a where
- data LogScale
- etheta :: Circle v => E v
- eθ :: Circle v => E v
- er :: Radial v => E v
- interpPolar :: Num n => n -> Polar n -> Polar n -> Polar n
- polarV2 :: RealFloat n => Iso' (Polar n) (V2 n)
- polarIso :: (Profunctor p, Functor f) => p (n, Angle n) (f (n, Angle n)) -> p (Polar n) (f (Polar n))
- unpolar :: Polar n -> (n, Angle n)
- polar :: (n, Angle n) -> Polar n
- mkPolar :: n -> Angle n -> Polar n
- class Radial (t :: * -> *) where
- class Radial t => Circle (t :: * -> *) where
- class HasX (t :: * -> *) where
- class HasX t => HasY (t :: * -> *) where
- newtype Polar a = Polar (V2 a)
- class HasR (t :: * -> *) where
Documentation
Minimal complete definition
Instances
| ToPNG (Renderable a) # | |
Defined in Language.Stochaskell.Plot Methods toPNG :: String -> Renderable a -> IO () # | |
| ToPNG (QDiagram Cairo V2 Double Any) # | |
Re-exports
Graphics.Rendering.Chart.Easy
class (Functor t, Foldable t) => Traversable (t :: * -> *) where #
Functors representing data structures that can be traversed from left to right.
A definition of traverse must satisfy the following laws:
- naturality
t .for every applicative transformationtraversef =traverse(t . f)t- identity
traverseIdentity = Identity- composition
traverse(Compose .fmapg . f) = Compose .fmap(traverseg) .traversef
A definition of sequenceA must satisfy the following laws:
- naturality
t .for every applicative transformationsequenceA=sequenceA.fmaptt- identity
sequenceA.fmapIdentity = Identity- composition
sequenceA.fmapCompose = Compose .fmapsequenceA.sequenceA
where an applicative transformation is a function
t :: (Applicative f, Applicative g) => f a -> g a
preserving the Applicative operations, i.e.
and the identity functor Identity and composition of functors Compose
are defined as
newtype Identity a = Identity a
instance Functor Identity where
fmap f (Identity x) = Identity (f x)
instance Applicative Identity where
pure x = Identity x
Identity f <*> Identity x = Identity (f x)
newtype Compose f g a = Compose (f (g a))
instance (Functor f, Functor g) => Functor (Compose f g) where
fmap f (Compose x) = Compose (fmap (fmap f) x)
instance (Applicative f, Applicative g) => Applicative (Compose f g) where
pure x = Compose (pure (pure x))
Compose f <*> Compose x = Compose ((<*>) <$> f <*> x)(The naturality law is implied by parametricity.)
Instances are similar to Functor, e.g. given a data type
data Tree a = Empty | Leaf a | Node (Tree a) a (Tree a)
a suitable instance would be
instance Traversable Tree where traverse f Empty = pure Empty traverse f (Leaf x) = Leaf <$> f x traverse f (Node l k r) = Node <$> traverse f l <*> f k <*> traverse f r
This is suitable even for abstract types, as the laws for <*>
imply a form of associativity.
The superclass instances should satisfy the following:
- In the
Functorinstance,fmapshould be equivalent to traversal with the identity applicative functor (fmapDefault). - In the
Foldableinstance,foldMapshould be equivalent to traversal with a constant applicative functor (foldMapDefault).
Methods
traverse :: Applicative f => (a -> f b) -> t a -> f (t b) #
Map each element of a structure to an action, evaluate these actions
from left to right, and collect the results. For a version that ignores
the results see traverse_.
Instances
| Traversable [] | Since: base-2.1 |
Defined in Data.Traversable | |
| Traversable Maybe | Since: base-2.1 |
| Traversable Par1 | |
| Traversable Identity | |
| Traversable Complex | |
| Traversable Min | Since: base-4.9.0.0 |
| Traversable Max | Since: base-4.9.0.0 |
| Traversable First | Since: base-4.9.0.0 |
| Traversable Last | Since: base-4.9.0.0 |
| Traversable Option | Since: base-4.9.0.0 |
| Traversable ZipList | Since: base-4.9.0.0 |
| Traversable First | Since: base-4.8.0.0 |
| Traversable Last | Since: base-4.8.0.0 |
| Traversable Dual | Since: base-4.8.0.0 |
| Traversable Sum | Since: base-4.8.0.0 |
| Traversable Product | Since: base-4.8.0.0 |
| Traversable NonEmpty | Since: base-4.9.0.0 |
| Traversable IntMap | |
| Traversable Tree | |
| Traversable Seq | |
| Traversable FingerTree | |
Defined in Data.Sequence.Internal Methods traverse :: Applicative f => (a -> f b) -> FingerTree a -> f (FingerTree b) # sequenceA :: Applicative f => FingerTree (f a) -> f (FingerTree a) # mapM :: Monad m => (a -> m b) -> FingerTree a -> m (FingerTree b) # sequence :: Monad m => FingerTree (m a) -> m (FingerTree a) # | |
| Traversable Digit | |
| Traversable Node | |
| Traversable Elem | |
| Traversable ViewL | |
| Traversable ViewR | |
| Traversable V3 | |
| Traversable V2 | |
| Traversable Polar | |
| Traversable Array | |
| Traversable Vector | |
Defined in Data.Vector | |
| Traversable Log | |
Defined in Numeric.Log | |
| Traversable V1 | |
| Traversable (Either a) | Since: base-4.7.0.0 |
Defined in Data.Traversable | |
| Traversable (V1 :: * -> *) | |
| Traversable (U1 :: * -> *) | Since: base-4.9.0.0 |
| Traversable ((,) a) | Since: base-4.7.0.0 |
Defined in Data.Traversable | |
| Traversable (Level i) | |
| Traversable (Map k) | |
| Ix i => Traversable (Array i) | Since: base-2.1 |
| Traversable (Arg a) | Since: base-4.9.0.0 |
| Traversable (Proxy :: * -> *) | Since: base-4.7.0.0 |
| Traversable f => Traversable (MaybeT f) | |
Defined in Control.Monad.Trans.Maybe | |
| Traversable f => Traversable (ListT f) | |
| Traversable f => Traversable (Point f) | |
Defined in Linear.Affine | |
| Traversable (Categorical p) | |
Defined in Data.Random.Distribution.Categorical Methods traverse :: Applicative f => (a -> f b) -> Categorical p a -> f (Categorical p b) # sequenceA :: Applicative f => Categorical p (f a) -> f (Categorical p a) # mapM :: Monad m => (a -> m b) -> Categorical p a -> m (Categorical p b) # sequence :: Monad m => Categorical p (m a) -> m (Categorical p a) # | |
| Traversable (HashMap k) | |
Defined in Data.HashMap.Base | |
| Traversable f => Traversable (Yoneda f) | |
Defined in Data.Functor.Yoneda | |
| Traversable f => Traversable (Rec1 f) | |
| Traversable (URec Char :: * -> *) | |
Defined in Data.Traversable | |
| Traversable (URec Double :: * -> *) | |
Defined in Data.Traversable | |
| Traversable (URec Float :: * -> *) | |
Defined in Data.Traversable | |
| Traversable (URec Int :: * -> *) | |
| Traversable (URec Word :: * -> *) | |
Defined in Data.Traversable | |
| Traversable (URec (Ptr ()) :: * -> *) | |
Defined in Data.Traversable Methods traverse :: Applicative f => (a -> f b) -> URec (Ptr ()) a -> f (URec (Ptr ()) b) # sequenceA :: Applicative f => URec (Ptr ()) (f a) -> f (URec (Ptr ()) a) # mapM :: Monad m => (a -> m b) -> URec (Ptr ()) a -> m (URec (Ptr ()) b) # sequence :: Monad m => URec (Ptr ()) (m a) -> m (URec (Ptr ()) a) # | |
| Traversable (Const m :: * -> *) | Since: base-4.7.0.0 |
| Traversable f => Traversable (IdentityT f) | |
Defined in Control.Monad.Trans.Identity | |
| Traversable f => Traversable (ExceptT e f) | |
Defined in Control.Monad.Trans.Except | |
| Traversable f => Traversable (ErrorT e f) | |
Defined in Control.Monad.Trans.Error | |
| Traversable f => Traversable (Backwards f) | Derived instance. |
Defined in Control.Applicative.Backwards | |
| Traversable f => Traversable (WriterT w f) | |
Defined in Control.Monad.Trans.Writer.Lazy | |
| Traversable f => Traversable (WriterT w f) | |
Defined in Control.Monad.Trans.Writer.Strict | |
| Bitraversable p => Traversable (Join p) | |
Defined in Data.Bifunctor.Join | |
| Traversable (Tagged s) | |
Defined in Data.Tagged | |
| Traversable (Forget r a) | |
Defined in Data.Profunctor.Types | |
| Traversable f => Traversable (AlongsideLeft f b) | |
Defined in Control.Lens.Internal.Getter Methods traverse :: Applicative f0 => (a -> f0 b0) -> AlongsideLeft f b a -> f0 (AlongsideLeft f b b0) # sequenceA :: Applicative f0 => AlongsideLeft f b (f0 a) -> f0 (AlongsideLeft f b a) # mapM :: Monad m => (a -> m b0) -> AlongsideLeft f b a -> m (AlongsideLeft f b b0) # sequence :: Monad m => AlongsideLeft f b (m a) -> m (AlongsideLeft f b a) # | |
| Traversable f => Traversable (AlongsideRight f a) | |
Defined in Control.Lens.Internal.Getter Methods traverse :: Applicative f0 => (a0 -> f0 b) -> AlongsideRight f a a0 -> f0 (AlongsideRight f a b) # sequenceA :: Applicative f0 => AlongsideRight f a (f0 a0) -> f0 (AlongsideRight f a a0) # mapM :: Monad m => (a0 -> m b) -> AlongsideRight f a a0 -> m (AlongsideRight f a b) # sequence :: Monad m => AlongsideRight f a (m a0) -> m (AlongsideRight f a a0) # | |
| Traversable (K1 i c :: * -> *) | |
| (Traversable f, Traversable g) => Traversable (f :+: g) | |
Defined in Data.Traversable | |
| (Traversable f, Traversable g) => Traversable (f :*: g) | |
Defined in Data.Traversable | |
| Traversable (Magma i t b) | |
Defined in Control.Lens.Internal.Magma | |
| (Traversable f, Traversable g) => Traversable (Product f g) | Since: base-4.9.0.0 |
Defined in Data.Functor.Product | |
| (Traversable f, Traversable g) => Traversable (Sum f g) | Since: base-4.9.0.0 |
| Traversable f => Traversable (M1 i c f) | |
| (Traversable f, Traversable g) => Traversable (f :.: g) | |
Defined in Data.Traversable | |
| (Traversable f, Traversable g) => Traversable (Compose f g) | Since: base-4.9.0.0 |
Defined in Data.Functor.Compose | |
| Traversable (Clown f a :: * -> *) | |
Defined in Data.Bifunctor.Clown | |
| Bitraversable p => Traversable (Flip p a) | |
Defined in Data.Bifunctor.Flip | |
| Traversable g => Traversable (Joker g a) | |
Defined in Data.Bifunctor.Joker | |
| Bitraversable p => Traversable (WrappedBifunctor p a) | |
Defined in Data.Bifunctor.Wrapped Methods traverse :: Applicative f => (a0 -> f b) -> WrappedBifunctor p a a0 -> f (WrappedBifunctor p a b) # sequenceA :: Applicative f => WrappedBifunctor p a (f a0) -> f (WrappedBifunctor p a a0) # mapM :: Monad m => (a0 -> m b) -> WrappedBifunctor p a a0 -> m (WrappedBifunctor p a b) # sequence :: Monad m => WrappedBifunctor p a (m a0) -> m (WrappedBifunctor p a a0) # | |
| (Traversable f, Bitraversable p) => Traversable (Tannen f p a) | |
Defined in Data.Bifunctor.Tannen Methods traverse :: Applicative f0 => (a0 -> f0 b) -> Tannen f p a a0 -> f0 (Tannen f p a b) # sequenceA :: Applicative f0 => Tannen f p a (f0 a0) -> f0 (Tannen f p a a0) # mapM :: Monad m => (a0 -> m b) -> Tannen f p a a0 -> m (Tannen f p a b) # sequence :: Monad m => Tannen f p a (m a0) -> m (Tannen f p a a0) # | |
| (Bitraversable p, Traversable g) => Traversable (Biff p f g a) | |
Defined in Data.Bifunctor.Biff Methods traverse :: Applicative f0 => (a0 -> f0 b) -> Biff p f g a a0 -> f0 (Biff p f g a b) # sequenceA :: Applicative f0 => Biff p f g a (f0 a0) -> f0 (Biff p f g a a0) # mapM :: Monad m => (a0 -> m b) -> Biff p f g a a0 -> m (Biff p f g a b) # sequence :: Monad m => Biff p f g a (m a0) -> m (Biff p f g a a0) # | |
class (Foldable1 t, Traversable t) => Traversable1 (t :: * -> *) where #
Minimal complete definition
traverse1 | sequence1
Instances
class Profunctor (p :: * -> * -> *) where #
Instances
| Profunctor ReifiedGetter | |
Defined in Control.Lens.Reified Methods dimap :: (a -> b) -> (c -> d) -> ReifiedGetter b c -> ReifiedGetter a d # lmap :: (a -> b) -> ReifiedGetter b c -> ReifiedGetter a c # rmap :: (b -> c) -> ReifiedGetter a b -> ReifiedGetter a c # (#.) :: Coercible c b => (b -> c) -> ReifiedGetter a b -> ReifiedGetter a c (.#) :: Coercible b a => ReifiedGetter b c -> (a -> b) -> ReifiedGetter a c | |
| Profunctor ReifiedFold | |
Defined in Control.Lens.Reified Methods dimap :: (a -> b) -> (c -> d) -> ReifiedFold b c -> ReifiedFold a d # lmap :: (a -> b) -> ReifiedFold b c -> ReifiedFold a c # rmap :: (b -> c) -> ReifiedFold a b -> ReifiedFold a c # (#.) :: Coercible c b => (b -> c) -> ReifiedFold a b -> ReifiedFold a c (.#) :: Coercible b a => ReifiedFold b c -> (a -> b) -> ReifiedFold a c | |
| Profunctor (ReifiedIndexedGetter i) | |
Defined in Control.Lens.Reified Methods dimap :: (a -> b) -> (c -> d) -> ReifiedIndexedGetter i b c -> ReifiedIndexedGetter i a d # lmap :: (a -> b) -> ReifiedIndexedGetter i b c -> ReifiedIndexedGetter i a c # rmap :: (b -> c) -> ReifiedIndexedGetter i a b -> ReifiedIndexedGetter i a c # (#.) :: Coercible c b => (b -> c) -> ReifiedIndexedGetter i a b -> ReifiedIndexedGetter i a c (.#) :: Coercible b a => ReifiedIndexedGetter i b c -> (a -> b) -> ReifiedIndexedGetter i a c | |
| Profunctor (ReifiedIndexedFold i) | |
Defined in Control.Lens.Reified Methods dimap :: (a -> b) -> (c -> d) -> ReifiedIndexedFold i b c -> ReifiedIndexedFold i a d # lmap :: (a -> b) -> ReifiedIndexedFold i b c -> ReifiedIndexedFold i a c # rmap :: (b -> c) -> ReifiedIndexedFold i a b -> ReifiedIndexedFold i a c # (#.) :: Coercible c b => (b -> c) -> ReifiedIndexedFold i a b -> ReifiedIndexedFold i a c (.#) :: Coercible b a => ReifiedIndexedFold i b c -> (a -> b) -> ReifiedIndexedFold i a c | |
| Profunctor (Indexed i) | |
Defined in Control.Lens.Internal.Indexed Methods dimap :: (a -> b) -> (c -> d) -> Indexed i b c -> Indexed i a d # lmap :: (a -> b) -> Indexed i b c -> Indexed i a c # rmap :: (b -> c) -> Indexed i a b -> Indexed i a c # (#.) :: Coercible c b => (b -> c) -> Indexed i a b -> Indexed i a c (.#) :: Coercible b a => Indexed i b c -> (a -> b) -> Indexed i a c | |
| Monad m => Profunctor (Kleisli m) | |
Defined in Data.Profunctor.Unsafe Methods dimap :: (a -> b) -> (c -> d) -> Kleisli m b c -> Kleisli m a d # lmap :: (a -> b) -> Kleisli m b c -> Kleisli m a c # rmap :: (b -> c) -> Kleisli m a b -> Kleisli m a c # (#.) :: Coercible c b => (b -> c) -> Kleisli m a b -> Kleisli m a c (.#) :: Coercible b a => Kleisli m b c -> (a -> b) -> Kleisli m a c | |
| Profunctor (Tagged :: * -> * -> *) | |
Defined in Data.Profunctor.Unsafe | |
| Functor f => Profunctor (Costar f) | |
Defined in Data.Profunctor.Types Methods dimap :: (a -> b) -> (c -> d) -> Costar f b c -> Costar f a d # lmap :: (a -> b) -> Costar f b c -> Costar f a c # rmap :: (b -> c) -> Costar f a b -> Costar f a c # (#.) :: Coercible c b => (b -> c) -> Costar f a b -> Costar f a c (.#) :: Coercible b a => Costar f b c -> (a -> b) -> Costar f a c | |
| Profunctor (Forget r) | |
Defined in Data.Profunctor.Types Methods dimap :: (a -> b) -> (c -> d) -> Forget r b c -> Forget r a d # lmap :: (a -> b) -> Forget r b c -> Forget r a c # rmap :: (b -> c) -> Forget r a b -> Forget r a c # (#.) :: Coercible c b => (b -> c) -> Forget r a b -> Forget r a c (.#) :: Coercible b a => Forget r b c -> (a -> b) -> Forget r a c | |
| Functor f => Profunctor (Star f) | |
Defined in Data.Profunctor.Types | |
| Arrow p => Profunctor (WrappedArrow p) | |
Defined in Data.Profunctor.Types Methods dimap :: (a -> b) -> (c -> d) -> WrappedArrow p b c -> WrappedArrow p a d # lmap :: (a -> b) -> WrappedArrow p b c -> WrappedArrow p a c # rmap :: (b -> c) -> WrappedArrow p a b -> WrappedArrow p a c # (#.) :: Coercible c b => (b -> c) -> WrappedArrow p a b -> WrappedArrow p a c (.#) :: Coercible b a => WrappedArrow p b c -> (a -> b) -> WrappedArrow p a c | |
| Profunctor (CopastroSum p) | |
Defined in Data.Profunctor.Choice Methods dimap :: (a -> b) -> (c -> d) -> CopastroSum p b c -> CopastroSum p a d # lmap :: (a -> b) -> CopastroSum p b c -> CopastroSum p a c # rmap :: (b -> c) -> CopastroSum p a b -> CopastroSum p a c # (#.) :: Coercible c b => (b -> c) -> CopastroSum p a b -> CopastroSum p a c (.#) :: Coercible b a => CopastroSum p b c -> (a -> b) -> CopastroSum p a c | |
| Profunctor (CotambaraSum p) | |
Defined in Data.Profunctor.Choice Methods dimap :: (a -> b) -> (c -> d) -> CotambaraSum p b c -> CotambaraSum p a d # lmap :: (a -> b) -> CotambaraSum p b c -> CotambaraSum p a c # rmap :: (b -> c) -> CotambaraSum p a b -> CotambaraSum p a c # (#.) :: Coercible c b => (b -> c) -> CotambaraSum p a b -> CotambaraSum p a c (.#) :: Coercible b a => CotambaraSum p b c -> (a -> b) -> CotambaraSum p a c | |
| Profunctor (PastroSum p) | |
Defined in Data.Profunctor.Choice Methods dimap :: (a -> b) -> (c -> d) -> PastroSum p b c -> PastroSum p a d # lmap :: (a -> b) -> PastroSum p b c -> PastroSum p a c # rmap :: (b -> c) -> PastroSum p a b -> PastroSum p a c # (#.) :: Coercible c b => (b -> c) -> PastroSum p a b -> PastroSum p a c (.#) :: Coercible b a => PastroSum p b c -> (a -> b) -> PastroSum p a c | |
| Profunctor p => Profunctor (TambaraSum p) | |
Defined in Data.Profunctor.Choice Methods dimap :: (a -> b) -> (c -> d) -> TambaraSum p b c -> TambaraSum p a d # lmap :: (a -> b) -> TambaraSum p b c -> TambaraSum p a c # rmap :: (b -> c) -> TambaraSum p a b -> TambaraSum p a c # (#.) :: Coercible c b => (b -> c) -> TambaraSum p a b -> TambaraSum p a c (.#) :: Coercible b a => TambaraSum p b c -> (a -> b) -> TambaraSum p a c | |
| Profunctor p => Profunctor (Tambara p) | |
Defined in Data.Profunctor.Strong Methods dimap :: (a -> b) -> (c -> d) -> Tambara p b c -> Tambara p a d # lmap :: (a -> b) -> Tambara p b c -> Tambara p a c # rmap :: (b -> c) -> Tambara p a b -> Tambara p a c # (#.) :: Coercible c b => (b -> c) -> Tambara p a b -> Tambara p a c (.#) :: Coercible b a => Tambara p b c -> (a -> b) -> Tambara p a c | |
| Profunctor (Copastro p) | |
Defined in Data.Profunctor.Strong Methods dimap :: (a -> b) -> (c -> d) -> Copastro p b c -> Copastro p a d # lmap :: (a -> b) -> Copastro p b c -> Copastro p a c # rmap :: (b -> c) -> Copastro p a b -> Copastro p a c # (#.) :: Coercible c b => (b -> c) -> Copastro p a b -> Copastro p a c (.#) :: Coercible b a => Copastro p b c -> (a -> b) -> Copastro p a c | |
| Profunctor (Cotambara p) | |
Defined in Data.Profunctor.Strong Methods dimap :: (a -> b) -> (c -> d) -> Cotambara p b c -> Cotambara p a d # lmap :: (a -> b) -> Cotambara p b c -> Cotambara p a c # rmap :: (b -> c) -> Cotambara p a b -> Cotambara p a c # (#.) :: Coercible c b => (b -> c) -> Cotambara p a b -> Cotambara p a c (.#) :: Coercible b a => Cotambara p b c -> (a -> b) -> Cotambara p a c | |
| Profunctor (Pastro p) | |
Defined in Data.Profunctor.Strong Methods dimap :: (a -> b) -> (c -> d) -> Pastro p b c -> Pastro p a d # lmap :: (a -> b) -> Pastro p b c -> Pastro p a c # rmap :: (b -> c) -> Pastro p a b -> Pastro p a c # (#.) :: Coercible c b => (b -> c) -> Pastro p a b -> Pastro p a c (.#) :: Coercible b a => Pastro p b c -> (a -> b) -> Pastro p a c | |
| Profunctor ((->) :: * -> * -> *) | |
| Profunctor (Exchange a b) | |
Defined in Control.Lens.Internal.Iso Methods dimap :: (a0 -> b0) -> (c -> d) -> Exchange a b b0 c -> Exchange a b a0 d # lmap :: (a0 -> b0) -> Exchange a b b0 c -> Exchange a b a0 c # rmap :: (b0 -> c) -> Exchange a b a0 b0 -> Exchange a b a0 c # (#.) :: Coercible c b0 => (b0 -> c) -> Exchange a b a0 b0 -> Exchange a b a0 c (.#) :: Coercible b0 a0 => Exchange a b b0 c -> (a0 -> b0) -> Exchange a b a0 c | |
| Functor w => Profunctor (Cokleisli w) | |
Defined in Data.Profunctor.Unsafe Methods dimap :: (a -> b) -> (c -> d) -> Cokleisli w b c -> Cokleisli w a d # lmap :: (a -> b) -> Cokleisli w b c -> Cokleisli w a c # rmap :: (b -> c) -> Cokleisli w a b -> Cokleisli w a c # (#.) :: Coercible c b => (b -> c) -> Cokleisli w a b -> Cokleisli w a c (.#) :: Coercible b a => Cokleisli w b c -> (a -> b) -> Cokleisli w a c | |
| Contravariant f => Profunctor (Clown f :: * -> * -> *) | |
Defined in Data.Profunctor.Unsafe | |
| Functor f => Profunctor (Joker f :: * -> * -> *) | |
Defined in Data.Profunctor.Unsafe | |
| (Profunctor p, Profunctor q) => Profunctor (Product p q) | |
Defined in Data.Profunctor.Unsafe Methods dimap :: (a -> b) -> (c -> d) -> Product p q b c -> Product p q a d # lmap :: (a -> b) -> Product p q b c -> Product p q a c # rmap :: (b -> c) -> Product p q a b -> Product p q a c # (#.) :: Coercible c b => (b -> c) -> Product p q a b -> Product p q a c (.#) :: Coercible b a => Product p q b c -> (a -> b) -> Product p q a c | |
| (Functor f, Profunctor p) => Profunctor (Tannen f p) | |
Defined in Data.Profunctor.Unsafe Methods dimap :: (a -> b) -> (c -> d) -> Tannen f p b c -> Tannen f p a d # lmap :: (a -> b) -> Tannen f p b c -> Tannen f p a c # rmap :: (b -> c) -> Tannen f p a b -> Tannen f p a c # (#.) :: Coercible c b => (b -> c) -> Tannen f p a b -> Tannen f p a c (.#) :: Coercible b a => Tannen f p b c -> (a -> b) -> Tannen f p a c | |
| (Profunctor p, Functor f, Functor g) => Profunctor (Biff p f g) | |
Defined in Data.Profunctor.Unsafe Methods dimap :: (a -> b) -> (c -> d) -> Biff p f g b c -> Biff p f g a d # lmap :: (a -> b) -> Biff p f g b c -> Biff p f g a c # rmap :: (b -> c) -> Biff p f g a b -> Biff p f g a c # (#.) :: Coercible c b => (b -> c) -> Biff p f g a b -> Biff p f g a c (.#) :: Coercible b a => Biff p f g b c -> (a -> b) -> Biff p f g a c | |
class Profunctor p => Choice (p :: * -> * -> *) where #
Instances
| Choice ReifiedGetter | |
Defined in Control.Lens.Reified Methods left' :: ReifiedGetter a b -> ReifiedGetter (Either a c) (Either b c) # right' :: ReifiedGetter a b -> ReifiedGetter (Either c a) (Either c b) # | |
| Choice ReifiedFold | |
Defined in Control.Lens.Reified Methods left' :: ReifiedFold a b -> ReifiedFold (Either a c) (Either b c) # right' :: ReifiedFold a b -> ReifiedFold (Either c a) (Either c b) # | |
| Choice (Indexed i) | |
| Monad m => Choice (Kleisli m) | |
| Choice (Tagged :: * -> * -> *) | |
| Traversable w => Choice (Costar w) | |
| Monoid r => Choice (Forget r) | |
| Applicative f => Choice (Star f) | |
| ArrowChoice p => Choice (WrappedArrow p) | |
| Choice (PastroSum p) | |
| Profunctor p => Choice (TambaraSum p) | |
| Choice p => Choice (Tambara p) | |
| Choice ((->) :: * -> * -> *) | |
| Comonad w => Choice (Cokleisli w) | |
| Functor f => Choice (Joker f :: * -> * -> *) | |
| (Choice p, Choice q) => Choice (Product p q) | |
| (Functor f, Choice p) => Choice (Tannen f p) | |
type family Zoomed (m :: * -> *) :: * -> * -> * #
Instances
| type Zoomed (MaybeT m) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (ListT m) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (IdentityT m) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (ExceptT e m) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (ErrorT e m) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (WriterT w m) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (StateT s z) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (StateT s z) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (WriterT w m) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (FreeT f m) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (ReaderT e m) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (RWST r w s z) | |
Defined in Control.Lens.Zoom | |
| type Zoomed (RWST r w s z) | |
Defined in Control.Lens.Zoom | |
class (MonadState s m, MonadState t n) => Zoom (m :: * -> *) (n :: * -> *) s t | m -> s, n -> t, m t -> n, n s -> m where #
Minimal complete definition
Instances
| Zoom m n s t => Zoom (MaybeT m) (MaybeT n) s t | |
| Zoom m n s t => Zoom (ListT m) (ListT n) s t | |
| Zoom m n s t => Zoom (IdentityT m) (IdentityT n) s t | |
| Zoom m n s t => Zoom (ExceptT e m) (ExceptT e n) s t | |
| (Error e, Zoom m n s t) => Zoom (ErrorT e m) (ErrorT e n) s t | |
| (Monoid w, Zoom m n s t) => Zoom (WriterT w m) (WriterT w n) s t | |
| Monad z => Zoom (StateT s z) (StateT t z) s t | |
| Monad z => Zoom (StateT s z) (StateT t z) s t | |
| (Monoid w, Zoom m n s t) => Zoom (WriterT w m) (WriterT w n) s t | |
| (Functor f, Zoom m n s t) => Zoom (FreeT f m) (FreeT f n) s t | |
Defined in Control.Lens.Zoom | |
| Zoom m n s t => Zoom (ReaderT e m) (ReaderT e n) s t | |
| (Monoid w, Monad z) => Zoom (RWST r w s z) (RWST r w t z) s t | |
| (Monoid w, Monad z) => Zoom (RWST r w s z) (RWST r w t z) s t | |
class (Magnified m ~ Magnified n, MonadReader b m, MonadReader a n) => Magnify (m :: * -> *) (n :: * -> *) b a | m -> b, n -> a, m a -> n, n b -> m where #
Minimal complete definition
Instances
| Magnify m n b a => Magnify (IdentityT m) (IdentityT n) b a | |
| Magnify ((->) b :: * -> *) ((->) a :: * -> *) b a | |
Defined in Control.Lens.Zoom | |
| Monad m => Magnify (ReaderT b m) (ReaderT a m) b a | |
| (Monad m, Monoid w) => Magnify (RWST b w s m) (RWST a w s m) b a | |
| (Monad m, Monoid w) => Magnify (RWST b w s m) (RWST a w s m) b a | |
type family Magnified (m :: * -> *) :: * -> * -> * #
Instances
| type Magnified (IdentityT m) | |
Defined in Control.Lens.Zoom | |
| type Magnified ((->) b :: * -> *) | |
| type Magnified (ReaderT b m) | |
Defined in Control.Lens.Zoom | |
| type Magnified (RWST a w s m) | |
Defined in Control.Lens.Zoom | |
| type Magnified (RWST a w s m) | |
Defined in Control.Lens.Zoom | |
Instances
class (Rewrapped s t, Rewrapped t s) => Rewrapping s t #
Instances
| (Rewrapped s t, Rewrapped t s) => Rewrapping s t | |
Defined in Control.Lens.Wrapped | |
class Wrapped s => Rewrapped s t #
Instances
type Traversal1' s a = Traversal1 s s a a #
type Traversal1 s t a b = forall (f :: * -> *). Apply f => (a -> f b) -> s -> f t #
type Traversal' s a = Traversal s s a a #
type Traversal s t a b = forall (f :: * -> *). Applicative f => (a -> f b) -> s -> f t #
type Review t b = forall (p :: * -> * -> *) (f :: * -> *). (Choice p, Bifunctor p, Settable f) => Optic' p f t b #
type Prism s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Choice p, Applicative f) => p a (f b) -> p s (f t) #
type Over (p :: k -> * -> *) (f :: k1 -> *) s (t :: k1) (a :: k) (b :: k1) = p a (f b) -> s -> f t #
type Optical' (p :: k1 -> k -> *) (q :: k1 -> k -> *) (f :: k1 -> k) (s :: k1) (a :: k1) = Optical p q f s s a a #
type Optical (p :: k2 -> k -> *) (q :: k1 -> k -> *) (f :: k3 -> k) (s :: k1) (t :: k3) (a :: k2) (b :: k3) = p a (f b) -> q s (f t) #
type Optic (p :: k1 -> k -> *) (f :: k2 -> k) (s :: k1) (t :: k2) (a :: k1) (b :: k2) = p a (f b) -> p s (f t) #
type Iso s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Profunctor p, Functor f) => p a (f b) -> p s (f t) #
type IndexedTraversal1' i s a = IndexedTraversal1 i s s a a #
type IndexedTraversal1 i s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Apply f) => p a (f b) -> s -> f t #
type IndexedTraversal' i s a = IndexedTraversal i s s a a #
type IndexedTraversal i s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Applicative f) => p a (f b) -> s -> f t #
type IndexedSetter' i s a = IndexedSetter i s s a a #
type IndexedSetter i s t a b = forall (f :: * -> *) (p :: * -> * -> *). (Indexable i p, Settable f) => p a (f b) -> s -> f t #
type IndexedLensLike' i (f :: * -> *) s a = IndexedLensLike i f s s a a #
type IndexedLensLike i (f :: k -> *) s (t :: k) a (b :: k) = forall (p :: * -> * -> *). Indexable i p => p a (f b) -> s -> f t #
type IndexedLens' i s a = IndexedLens i s s a a #
type IndexedLens i s t a b = forall (f :: * -> *) (p :: * -> * -> *). (Indexable i p, Functor f) => p a (f b) -> s -> f t #
type IndexedGetter i s a = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Contravariant f, Functor f) => p a (f a) -> s -> f s #
type IndexedFold1 i s a = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Contravariant f, Apply f) => p a (f a) -> s -> f s #
type IndexedFold i s a = forall (p :: * -> * -> *) (f :: * -> *). (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> s -> f s #
type IndexPreservingTraversal1' s a = IndexPreservingTraversal1 s s a a #
type IndexPreservingTraversal1 s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Apply f) => p a (f b) -> p s (f t) #
type IndexPreservingTraversal' s a = IndexPreservingTraversal s s a a #
type IndexPreservingTraversal s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Applicative f) => p a (f b) -> p s (f t) #
type IndexPreservingSetter' s a = IndexPreservingSetter s s a a #
type IndexPreservingSetter s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Settable f) => p a (f b) -> p s (f t) #
type IndexPreservingLens' s a = IndexPreservingLens s s a a #
type IndexPreservingLens s t a b = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Functor f) => p a (f b) -> p s (f t) #
type IndexPreservingGetter s a = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Contravariant f, Functor f) => p a (f a) -> p s (f s) #
type IndexPreservingFold1 s a = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Contravariant f, Apply f) => p a (f a) -> p s (f s) #
type IndexPreservingFold s a = forall (p :: * -> * -> *) (f :: * -> *). (Conjoined p, Contravariant f, Applicative f) => p a (f a) -> p s (f s) #
type Fold1 s a = forall (f :: * -> *). (Contravariant f, Apply f) => (a -> f a) -> s -> f s #
type Fold s a = forall (f :: * -> *). (Contravariant f, Applicative f) => (a -> f a) -> s -> f s #
type Equality (s :: k1) (t :: k2) (a :: k1) (b :: k2) = forall k3 (p :: k1 -> k3 -> *) (f :: k2 -> k3). p a (f b) -> p s (f t) #
class Field9 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field9 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f, g, h, i') i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g, h, i', j) i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h, i', j, kk) i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i', j, kk, l) i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i', j, kk, l, m) i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n) i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o) i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p) i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p, q) i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p, q, r) i i' | |
Defined in Control.Lens.Tuple | |
| Field9 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i', j, kk, l, m, n, o, p, q, r, s) i i' | |
Defined in Control.Lens.Tuple | |
class Field8 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field8 (a, b, c, d, e, f, g, h) (a, b, c, d, e, f, g, h') h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f, g, h', i) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g, h', i, j) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h', i, j, kk) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h', i, j, kk, l) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h', i, j, kk, l, m) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p, q) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p, q, r) h h' | |
Defined in Control.Lens.Tuple | |
| Field8 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h', i, j, kk, l, m, n, o, p, q, r, s) h h' | |
Defined in Control.Lens.Tuple | |
class Field7 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field7 (a, b, c, d, e, f, g) (a, b, c, d, e, f, g') g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h) (a, b, c, d, e, f, g', h) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f, g', h, i) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g', h, i, j) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g', h, i, j, kk) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g', h, i, j, kk, l) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g', h, i, j, kk, l, m) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p, q) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p, q, r) g g' | |
Defined in Control.Lens.Tuple | |
| Field7 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g', h, i, j, kk, l, m, n, o, p, q, r, s) g g' | |
Defined in Control.Lens.Tuple | |
class Field6 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field6 (a, b, c, d, e, f) (a, b, c, d, e, f') f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g) (a, b, c, d, e, f', g) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h) (a, b, c, d, e, f', g, h) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e, f', g, h, i) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f', g, h, i, j) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f', g, h, i, j, kk) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f', g, h, i, j, kk, l) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f', g, h, i, j, kk, l, m) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p, q) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p, q, r) f f' | |
Defined in Control.Lens.Tuple | |
| Field6 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f', g, h, i, j, kk, l, m, n, o, p, q, r, s) f f' | |
Defined in Control.Lens.Tuple | |
class Field5 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field5 (a, b, c, d, e) (a, b, c, d, e') e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f) (a, b, c, d, e', f) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g) (a, b, c, d, e', f, g) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h) (a, b, c, d, e', f, g, h) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i) (a, b, c, d, e', f, g, h, i) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e', f, g, h, i, j) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e', f, g, h, i, j, kk) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e', f, g, h, i, j, kk, l) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e', f, g, h, i, j, kk, l, m) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p, q) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p, q, r) e e' | |
Defined in Control.Lens.Tuple | |
| Field5 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e', f, g, h, i, j, kk, l, m, n, o, p, q, r, s) e e' | |
Defined in Control.Lens.Tuple | |
class Field4 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field4 (a, b, c, d) (a, b, c, d') d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e) (a, b, c, d', e) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f) (a, b, c, d', e, f) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g) (a, b, c, d', e, f, g) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h) (a, b, c, d', e, f, g, h) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i) (a, b, c, d', e, f, g, h, i) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d', e, f, g, h, i, j) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d', e, f, g, h, i, j, kk) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d', e, f, g, h, i, j, kk, l) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d', e, f, g, h, i, j, kk, l, m) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p, q) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p, q, r) d d' | |
Defined in Control.Lens.Tuple | |
| Field4 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d', e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) d d' | |
Defined in Control.Lens.Tuple | |
class Field3 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field3 (V3 a) (V3 a) a a | |
| Field3 (a, b, c) (a, b, c') c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d) (a, b, c', d) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e) (a, b, c', d, e) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f) (a, b, c', d, e, f) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g) (a, b, c', d, e, f, g) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h) (a, b, c', d, e, f, g, h) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i) (a, b, c', d, e, f, g, h, i) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j) (a, b, c', d, e, f, g, h, i, j) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c', d, e, f, g, h, i, j, kk) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c', d, e, f, g, h, i, j, kk, l) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c', d, e, f, g, h, i, j, kk, l, m) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p, q) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) c c' | |
Defined in Control.Lens.Tuple | |
| Field3 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c', d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) c c' | |
Defined in Control.Lens.Tuple | |
class Field2 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field2 (V3 a) (V3 a) a a | |
| Field2 (V2 a) (V2 a) a a | |
| Field2 (a, b) (a, b') b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c) (a, b', c) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d) (a, b', c, d) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 ((f :*: g) p) ((f :*: g') p) (g p) (g' p) | |
| Field2 (Product f g a) (Product f g' a) (g a) (g' a) | |
| Field2 (a, b, c, d, e) (a, b', c, d, e) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f) (a, b', c, d, e, f) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g) (a, b', c, d, e, f, g) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h) (a, b', c, d, e, f, g, h) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i) (a, b', c, d, e, f, g, h, i) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j) (a, b', c, d, e, f, g, h, i, j) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j, kk) (a, b', c, d, e, f, g, h, i, j, kk) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b', c, d, e, f, g, h, i, j, kk, l) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b', c, d, e, f, g, h, i, j, kk, l, m) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) b b' | |
Defined in Control.Lens.Tuple | |
| Field2 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b', c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) b b' | |
Defined in Control.Lens.Tuple | |
class Field19 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field19 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s') s s' | |
Defined in Control.Lens.Tuple | |
class Field18 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field18 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r') r r' | |
Defined in Control.Lens.Tuple | |
| Field18 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r', s) r r' | |
Defined in Control.Lens.Tuple | |
class Field17 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field17 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q') q q' | |
Defined in Control.Lens.Tuple | |
| Field17 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q', r) q q' | |
Defined in Control.Lens.Tuple | |
| Field17 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q', r, s) q q' | |
Defined in Control.Lens.Tuple | |
class Field16 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field16 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p') p p' | |
Defined in Control.Lens.Tuple | |
| Field16 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p', q) p p' | |
Defined in Control.Lens.Tuple | |
| Field16 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p', q, r) p p' | |
Defined in Control.Lens.Tuple | |
| Field16 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p', q, r, s) p p' | |
Defined in Control.Lens.Tuple | |
class Field15 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o') o o' | |
Defined in Control.Lens.Tuple | |
| Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p) o o' | |
Defined in Control.Lens.Tuple | |
| Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p, q) o o' | |
Defined in Control.Lens.Tuple | |
| Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p, q, r) o o' | |
Defined in Control.Lens.Tuple | |
| Field15 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o', p, q, r, s) o o' | |
Defined in Control.Lens.Tuple | |
class Field14 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n') n n' | |
Defined in Control.Lens.Tuple | |
| Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o) n n' | |
Defined in Control.Lens.Tuple | |
| Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p) n n' | |
Defined in Control.Lens.Tuple | |
| Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p, q) n n' | |
Defined in Control.Lens.Tuple | |
| Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p, q, r) n n' | |
Defined in Control.Lens.Tuple | |
| Field14 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m, n', o, p, q, r, s) n n' | |
Defined in Control.Lens.Tuple | |
class Field13 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j, kk, l, m') m m' | |
Defined in Control.Lens.Tuple | |
| Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n) m m' | |
Defined in Control.Lens.Tuple | |
| Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o) m m' | |
Defined in Control.Lens.Tuple | |
| Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p) m m' | |
Defined in Control.Lens.Tuple | |
| Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p, q) m m' | |
Defined in Control.Lens.Tuple | |
| Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p, q, r) m m' | |
Defined in Control.Lens.Tuple | |
| Field13 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l, m', n, o, p, q, r, s) m m' | |
Defined in Control.Lens.Tuple | |
class Field12 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field12 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i, j, kk, l') l l' | |
Defined in Control.Lens.Tuple | |
| Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j, kk, l', m) l l' | |
Defined in Control.Lens.Tuple | |
| Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n) l l' | |
Defined in Control.Lens.Tuple | |
| Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o) l l' | |
Defined in Control.Lens.Tuple | |
| Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p) l l' | |
Defined in Control.Lens.Tuple | |
| Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p, q) l l' | |
Defined in Control.Lens.Tuple | |
| Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p, q, r) l l' | |
Defined in Control.Lens.Tuple | |
| Field12 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk, l', m, n, o, p, q, r, s) l l' | |
Defined in Control.Lens.Tuple | |
class Field11 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field11 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h, i, j, kk') kk kk' | |
Defined in Control.Lens.Tuple | |
| Field11 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i, j, kk', l) kk kk' | |
Defined in Control.Lens.Tuple | |
| Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j, kk', l, m) kk kk' | |
Defined in Control.Lens.Tuple | |
| Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n) kk kk' | |
Defined in Control.Lens.Tuple | |
| Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o) kk kk' | |
Defined in Control.Lens.Tuple | |
| Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p) kk kk' | |
Defined in Control.Lens.Tuple | |
| Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p, q) kk kk' | |
Defined in Control.Lens.Tuple | |
| Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p, q, r) kk kk' | |
Defined in Control.Lens.Tuple | |
| Field11 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j, kk', l, m, n, o, p, q, r, s) kk kk' | |
Defined in Control.Lens.Tuple | |
class Field10 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field10 (a, b, c, d, e, f, g, h, i, j) (a, b, c, d, e, f, g, h, i, j') j j' | |
Defined in Control.Lens.Tuple | |
| Field10 (a, b, c, d, e, f, g, h, i, j, kk) (a, b, c, d, e, f, g, h, i, j', kk) j j' | |
Defined in Control.Lens.Tuple | |
| Field10 (a, b, c, d, e, f, g, h, i, j, kk, l) (a, b, c, d, e, f, g, h, i, j', kk, l) j j' | |
Defined in Control.Lens.Tuple | |
| Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a, b, c, d, e, f, g, h, i, j', kk, l, m) j j' | |
Defined in Control.Lens.Tuple | |
| Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n) j j' | |
Defined in Control.Lens.Tuple | |
| Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o) j j' | |
Defined in Control.Lens.Tuple | |
| Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p) j j' | |
Defined in Control.Lens.Tuple | |
| Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p, q) j j' | |
Defined in Control.Lens.Tuple | |
| Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p, q, r) j j' | |
Defined in Control.Lens.Tuple | |
| Field10 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a, b, c, d, e, f, g, h, i, j', kk, l, m, n, o, p, q, r, s) j j' | |
Defined in Control.Lens.Tuple | |
class Field1 s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| Field1 (Identity a) (Identity b) a b | |
| Field1 (V3 a) (V3 a) a a | |
| Field1 (V2 a) (V2 a) a a | |
| Field1 (V1 a) (V1 b) a b | |
| Field1 (a, b) (a', b) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c) (a', b, c) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d) (a', b, c, d) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 ((f :*: g) p) ((f' :*: g) p) (f p) (f' p) | |
| Field1 (Product f g a) (Product f' g a) (f a) (f' a) | |
| Field1 (a, b, c, d, e) (a', b, c, d, e) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f) (a', b, c, d, e, f) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g) (a', b, c, d, e, f, g) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h) (a', b, c, d, e, f, g, h) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i) (a', b, c, d, e, f, g, h, i) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j) (a', b, c, d, e, f, g, h, i, j) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j, kk) (a', b, c, d, e, f, g, h, i, j, kk) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j, kk, l) (a', b, c, d, e, f, g, h, i, j, kk, l) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m) (a', b, c, d, e, f, g, h, i, j, kk, l, m) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r) a a' | |
Defined in Control.Lens.Tuple | |
| Field1 (a, b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) (a', b, c, d, e, f, g, h, i, j, kk, l, m, n, o, p, q, r, s) a a' | |
Defined in Control.Lens.Tuple | |
type Traversing1' (p :: * -> * -> *) (f :: * -> *) s a = Traversing1 p f s s a a #
type Traversing' (p :: * -> * -> *) (f :: * -> *) s a = Traversing p f s s a a #
class Ord k => TraverseMin k (m :: * -> *) | m -> k where #
Minimal complete definition
Methods
traverseMin :: (Indexable k p, Applicative f) => p v (f v) -> m v -> f (m v) #
Instances
| TraverseMin Int IntMap | |
Defined in Control.Lens.Traversal Methods traverseMin :: (Indexable Int p, Applicative f) => p v (f v) -> IntMap v -> f (IntMap v) # | |
| Ord k => TraverseMin k (Map k) | |
Defined in Control.Lens.Traversal Methods traverseMin :: (Indexable k p, Applicative f) => p v (f v) -> Map k v -> f (Map k v) # | |
class Ord k => TraverseMax k (m :: * -> *) | m -> k where #
Minimal complete definition
Methods
traverseMax :: (Indexable k p, Applicative f) => p v (f v) -> m v -> f (m v) #
Instances
| TraverseMax Int IntMap | |
Defined in Control.Lens.Traversal Methods traverseMax :: (Indexable Int p, Applicative f) => p v (f v) -> IntMap v -> f (IntMap v) # | |
| Ord k => TraverseMax k (Map k) | |
Defined in Control.Lens.Traversal Methods traverseMax :: (Indexable k p, Applicative f) => p v (f v) -> Map k v -> f (Map k v) # | |
type AnIndexedTraversal1' i s a = AnIndexedTraversal1 i s s a a #
type AnIndexedTraversal' i s a = AnIndexedTraversal i s s a a #
type ATraversal1' s a = ATraversal1 s s a a #
type ATraversal' s a = ATraversal s s a a #
type AnIndexedSetter' i s a = AnIndexedSetter i s s a a #
type AnIndexedSetter i s t a b = Indexed i a (Identity b) -> s -> Identity t #
type ReifiedTraversal' s a = ReifiedTraversal s s a a #
newtype ReifiedTraversal s t a b #
Constructors
| Traversal | |
Fields
| |
type ReifiedSetter' s a = ReifiedSetter s s a a #
newtype ReifiedSetter s t a b #
type ReifiedPrism' s a = ReifiedPrism s s a a #
newtype ReifiedPrism s t a b #
type ReifiedLens' s a = ReifiedLens s s a a #
newtype ReifiedLens s t a b #
type ReifiedIso' s a = ReifiedIso s s a a #
newtype ReifiedIso s t a b #
type ReifiedIndexedTraversal' i s a = ReifiedIndexedTraversal i s s a a #
newtype ReifiedIndexedTraversal i s t a b #
Constructors
| IndexedTraversal | |
Fields
| |
type ReifiedIndexedSetter' i s a = ReifiedIndexedSetter i s s a a #
newtype ReifiedIndexedSetter i s t a b #
Constructors
| IndexedSetter | |
Fields
| |
type ReifiedIndexedLens' i s a = ReifiedIndexedLens i s s a a #
newtype ReifiedIndexedLens i s t a b #
Constructors
| IndexedLens | |
Fields
| |
newtype ReifiedIndexedGetter i s a #
Constructors
| IndexedGetter | |
Fields
| |
Instances
newtype ReifiedIndexedFold i s a #
Constructors
| IndexedFold | |
Fields
| |
Instances
newtype ReifiedGetter s a #
Instances
newtype ReifiedFold s a #
Instances
Methods
plate :: Traversal' a a #
Instances
class GPlated a (g :: * -> *) #
Minimal complete definition
gplate'
Instances
| GPlated a (V1 :: * -> *) | |
Defined in Control.Lens.Plated Methods gplate' :: Applicative f => (a -> f a) -> V1 p -> f (V1 p) | |
| GPlated a (U1 :: * -> *) | |
Defined in Control.Lens.Plated Methods gplate' :: Applicative f => (a -> f a) -> U1 p -> f (U1 p) | |
| GPlated a (K1 i a :: * -> *) | |
Defined in Control.Lens.Plated Methods gplate' :: Applicative f => (a -> f a) -> K1 i a p -> f (K1 i a p) | |
| GPlated a (K1 i b :: * -> *) | |
Defined in Control.Lens.Plated Methods gplate' :: Applicative f => (a -> f a) -> K1 i b p -> f (K1 i b p) | |
| (GPlated a f, GPlated a g) => GPlated a (f :+: g) | |
Defined in Control.Lens.Plated Methods gplate' :: Applicative f0 => (a -> f0 a) -> (f :+: g) p -> f0 ((f :+: g) p) | |
| (GPlated a f, GPlated a g) => GPlated a (f :*: g) | |
Defined in Control.Lens.Plated Methods gplate' :: Applicative f0 => (a -> f0 a) -> (f :*: g) p -> f0 ((f :*: g) p) | |
| GPlated a f => GPlated a (M1 i c f) | |
Defined in Control.Lens.Plated Methods gplate' :: Applicative f0 => (a -> f0 a) -> M1 i c f p -> f0 (M1 i c f p) | |
type AnIndexedLens' i s a = AnIndexedLens i s s a a #
type AnIndexedLens i s t a b = Optical (Indexed i) ((->) :: * -> * -> *) (Pretext (Indexed i) a b) s t a b #
class Bifunctor p => Swapped (p :: * -> * -> *) where #
Minimal complete definition
Methods
swapped :: (Profunctor p, Functor f) => p (p b a) (f (p d c)) -> p (p a b) (f (p c d)) #
Instances
| Swapped Either | |
Defined in Control.Lens.Iso | |
| Swapped (,) | |
Defined in Control.Lens.Iso Methods swapped :: (Profunctor p, Functor f) => p (b, a) (f (d, c)) -> p (a, b) (f (c, d)) # | |
class Strict lazy strict | lazy -> strict, strict -> lazy where #
Minimal complete definition
class (Applicative f, Distributive f, Traversable f) => Settable (f :: * -> *) #
Minimal complete definition
untainted
Instances
| Settable Identity | |
Defined in Control.Lens.Internal.Setter Methods untaintedDot :: Profunctor p => p a (Identity b) -> p a b taintedDot :: Profunctor p => p a b -> p a (Identity b) | |
| Settable f => Settable (Backwards f) | |
Defined in Control.Lens.Internal.Setter Methods untainted :: Backwards f a -> a untaintedDot :: Profunctor p => p a (Backwards f b) -> p a b taintedDot :: Profunctor p => p a b -> p a (Backwards f b) | |
| (Settable f, Settable g) => Settable (Compose f g) | |
Defined in Control.Lens.Internal.Setter Methods untainted :: Compose f g a -> a untaintedDot :: Profunctor p => p a (Compose f g b) -> p a b taintedDot :: Profunctor p => p a b -> p a (Compose f g b) | |
class (Profunctor p, Bifunctor p) => Reviewable (p :: * -> * -> *) #
Instances
| (Profunctor p, Bifunctor p) => Reviewable p | |
Defined in Control.Lens.Internal.Review | |
Instances
| TraversableWithIndex i (Magma i t b) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (i -> a -> f b0) -> Magma i t b a -> f (Magma i t b b0) # itraversed :: (Indexable i p, Applicative f) => p a (f b0) -> Magma i t b a -> f (Magma i t b b0) # | |
| FunctorWithIndex i (Magma i t b) | |
| FoldableWithIndex i (Magma i t b) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (i -> a -> m) -> Magma i t b a -> m # ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Magma i t b a -> f (Magma i t b a) # ifoldr :: (i -> a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 # ifoldl :: (i -> b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 # ifoldr' :: (i -> a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 # ifoldl' :: (i -> b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 # | |
| Functor (Magma i t b) | |
| Foldable (Magma i t b) | |
Defined in Control.Lens.Internal.Magma Methods fold :: Monoid m => Magma i t b m -> m # foldMap :: Monoid m => (a -> m) -> Magma i t b a -> m # foldr :: (a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 # foldr' :: (a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 # foldl :: (b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 # foldl' :: (b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 # foldr1 :: (a -> a -> a) -> Magma i t b a -> a # foldl1 :: (a -> a -> a) -> Magma i t b a -> a # toList :: Magma i t b a -> [a] # null :: Magma i t b a -> Bool # length :: Magma i t b a -> Int # elem :: Eq a => a -> Magma i t b a -> Bool # maximum :: Ord a => Magma i t b a -> a # minimum :: Ord a => Magma i t b a -> a # | |
| Traversable (Magma i t b) | |
Defined in Control.Lens.Internal.Magma | |
| (Show i, Show a) => Show (Magma i t b a) | |
Instances
| TraversableWithIndex i (Level i) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (i -> a -> f b) -> Level i a -> f (Level i b) # itraversed :: (Indexable i p, Applicative f) => p a (f b) -> Level i a -> f (Level i b) # | |
| FunctorWithIndex i (Level i) | |
| FoldableWithIndex i (Level i) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (i -> a -> m) -> Level i a -> m # ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Level i a -> f (Level i a) # ifoldr :: (i -> a -> b -> b) -> b -> Level i a -> b # ifoldl :: (i -> b -> a -> b) -> b -> Level i a -> b # | |
| Functor (Level i) | |
| Foldable (Level i) | |
Defined in Control.Lens.Internal.Level Methods fold :: Monoid m => Level i m -> m # foldMap :: Monoid m => (a -> m) -> Level i a -> m # foldr :: (a -> b -> b) -> b -> Level i a -> b # foldr' :: (a -> b -> b) -> b -> Level i a -> b # foldl :: (b -> a -> b) -> b -> Level i a -> b # foldl' :: (b -> a -> b) -> b -> Level i a -> b # foldr1 :: (a -> a -> a) -> Level i a -> a # foldl1 :: (a -> a -> a) -> Level i a -> a # elem :: Eq a => a -> Level i a -> Bool # maximum :: Ord a => Level i a -> a # minimum :: Ord a => Level i a -> a # | |
| Traversable (Level i) | |
| (Eq i, Eq a) => Eq (Level i a) | |
| (Ord i, Ord a) => Ord (Level i a) | |
| (Read i, Read a) => Read (Level i a) | |
| (Show i, Show a) => Show (Level i a) | |
Minimal complete definition
Instances
Constructors
| Indexed | |
Fields
| |
Instances
class (Choice p, Corepresentable p, Comonad (Corep p), Traversable (Corep p), Strong p, Representable p, Monad (Rep p), MonadFix (Rep p), Distributive (Rep p), Costrong p, ArrowLoop p, ArrowApply p, ArrowChoice p, Closed p) => Conjoined (p :: * -> * -> *) where #
Methods
distrib :: Functor f => p a b -> p (f a) (f b) #
conjoined :: ((p ~ ((->) :: * -> * -> *)) -> q (a -> b) r) -> q (p a b) r -> q (p a b) r #
Instances
| Conjoined ReifiedGetter | |
Defined in Control.Lens.Reified Methods distrib :: Functor f => ReifiedGetter a b -> ReifiedGetter (f a) (f b) # conjoined :: ((ReifiedGetter ~ (->)) -> q (a -> b) r) -> q (ReifiedGetter a b) r -> q (ReifiedGetter a b) r # | |
| Conjoined (Indexed i) | |
| Conjoined ((->) :: * -> * -> *) | |
data Traversed a (f :: * -> *) #
Instances
| Applicative f => Semigroup (Traversed a f) | |
| Applicative f => Monoid (Traversed a f) | |
Constructors
| TopName Name | |
| MethodName Name Name |
Constructors
| Context (b -> t) a |
Instances
| IndexedComonadStore Context | |
| IndexedComonad Context | |
| IndexedFunctor Context | |
Defined in Control.Lens.Internal.Context | |
| a ~ b => ComonadStore a (Context a b) | |
Defined in Control.Lens.Internal.Context | |
| Functor (Context a b) | |
| a ~ b => Comonad (Context a b) | |
| Sellable ((->) :: * -> * -> *) Context | |
Defined in Control.Lens.Internal.Context | |
newtype Bazaar1 (p :: * -> * -> *) a b t #
Constructors
| Bazaar1 | |
Fields
| |
Instances
| Corepresentable p => Sellable p (Bazaar1 p) | |
Defined in Control.Lens.Internal.Bazaar | |
| Profunctor p => Bizarre1 p (Bazaar1 p) | |
Defined in Control.Lens.Internal.Bazaar | |
| Conjoined p => IndexedComonad (Bazaar1 p) | |
| IndexedFunctor (Bazaar1 p) | |
Defined in Control.Lens.Internal.Bazaar | |
| Functor (Bazaar1 p a b) | |
| (a ~ b, Conjoined p) => Comonad (Bazaar1 p a b) | |
| Apply (Bazaar1 p a b) | |
Defined in Control.Lens.Internal.Bazaar | |
| (a ~ b, Conjoined p) => ComonadApply (Bazaar1 p a b) | |
newtype Bazaar (p :: * -> * -> *) a b t #
Constructors
| Bazaar | |
Fields
| |
Instances
| Profunctor p => Bizarre p (Bazaar p) | |
Defined in Control.Lens.Internal.Bazaar Methods bazaar :: Applicative f => p a (f b) -> Bazaar p a b t -> f t | |
| Corepresentable p => Sellable p (Bazaar p) | |
Defined in Control.Lens.Internal.Bazaar | |
| Conjoined p => IndexedComonad (Bazaar p) | |
| IndexedFunctor (Bazaar p) | |
Defined in Control.Lens.Internal.Bazaar | |
| Functor (Bazaar p a b) | |
| Applicative (Bazaar p a b) | |
Defined in Control.Lens.Internal.Bazaar Methods pure :: a0 -> Bazaar p a b a0 # (<*>) :: Bazaar p a b (a0 -> b0) -> Bazaar p a b a0 -> Bazaar p a b b0 # liftA2 :: (a0 -> b0 -> c) -> Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b c # (*>) :: Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b b0 # (<*) :: Bazaar p a b a0 -> Bazaar p a b b0 -> Bazaar p a b a0 # | |
| (a ~ b, Conjoined p) => Comonad (Bazaar p a b) | |
| Apply (Bazaar p a b) | |
Defined in Control.Lens.Internal.Bazaar | |
| (a ~ b, Conjoined p) => ComonadApply (Bazaar p a b) | |
class (FunctorWithIndex i t, FoldableWithIndex i t, Traversable t) => TraversableWithIndex i (t :: * -> *) | t -> i where #
Methods
itraverse :: Applicative f => (i -> a -> f b) -> t a -> f (t b) #
itraversed :: (Indexable i p, Applicative f) => p a (f b) -> t a -> f (t b) #
Instances
| TraversableWithIndex Int [] | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Int -> a -> f b) -> [a] -> f [b] # itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> [a] -> f [b] # | |
| TraversableWithIndex Int ZipList | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Int -> a -> f b) -> ZipList a -> f (ZipList b) # itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> ZipList a -> f (ZipList b) # | |
| TraversableWithIndex Int NonEmpty | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Int -> a -> f b) -> NonEmpty a -> f (NonEmpty b) # itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> NonEmpty a -> f (NonEmpty b) # | |
| TraversableWithIndex Int IntMap | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Int -> a -> f b) -> IntMap a -> f (IntMap b) # itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> IntMap a -> f (IntMap b) # | |
| TraversableWithIndex Int Seq | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Int -> a -> f b) -> Seq a -> f (Seq b) # itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> Seq a -> f (Seq b) # | |
| TraversableWithIndex Int Vector | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Int -> a -> f b) -> Vector a -> f (Vector b) # itraversed :: (Indexable Int p, Applicative f) => p a (f b) -> Vector a -> f (Vector b) # | |
| TraversableWithIndex () Maybe | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (() -> a -> f b) -> Maybe a -> f (Maybe b) # itraversed :: (Indexable () p, Applicative f) => p a (f b) -> Maybe a -> f (Maybe b) # | |
| TraversableWithIndex () Par1 | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (() -> a -> f b) -> Par1 a -> f (Par1 b) # itraversed :: (Indexable () p, Applicative f) => p a (f b) -> Par1 a -> f (Par1 b) # | |
| TraversableWithIndex () Identity | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (() -> a -> f b) -> Identity a -> f (Identity b) # itraversed :: (Indexable () p, Applicative f) => p a (f b) -> Identity a -> f (Identity b) # | |
| TraversableWithIndex k (Map k) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (k -> a -> f b) -> Map k a -> f (Map k b) # itraversed :: (Indexable k p, Applicative f) => p a (f b) -> Map k a -> f (Map k b) # | |
| TraversableWithIndex k (HashMap k) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (k -> a -> f b) -> HashMap k a -> f (HashMap k b) # itraversed :: (Indexable k p, Applicative f) => p a (f b) -> HashMap k a -> f (HashMap k b) # | |
| TraversableWithIndex k ((,) k) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (k -> a -> f b) -> (k, a) -> f (k, b) # itraversed :: (Indexable k p, Applicative f) => p a (f b) -> (k, a) -> f (k, b) # | |
| TraversableWithIndex i (Level i) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (i -> a -> f b) -> Level i a -> f (Level i b) # itraversed :: (Indexable i p, Applicative f) => p a (f b) -> Level i a -> f (Level i b) # | |
| Ix i => TraversableWithIndex i (Array i) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (i -> a -> f b) -> Array i a -> f (Array i b) # itraversed :: (Indexable i p, Applicative f) => p a (f b) -> Array i a -> f (Array i b) # | |
| TraversableWithIndex Void (V1 :: * -> *) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Void -> a -> f b) -> V1 a -> f (V1 b) # itraversed :: (Indexable Void p, Applicative f) => p a (f b) -> V1 a -> f (V1 b) # | |
| TraversableWithIndex Void (U1 :: * -> *) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Void -> a -> f b) -> U1 a -> f (U1 b) # itraversed :: (Indexable Void p, Applicative f) => p a (f b) -> U1 a -> f (U1 b) # | |
| TraversableWithIndex Void (Proxy :: * -> *) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Void -> a -> f b) -> Proxy a -> f (Proxy b) # itraversed :: (Indexable Void p, Applicative f) => p a (f b) -> Proxy a -> f (Proxy b) # | |
| TraversableWithIndex () (Tagged a) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (() -> a0 -> f b) -> Tagged a a0 -> f (Tagged a b) # itraversed :: (Indexable () p, Applicative f) => p a0 (f b) -> Tagged a a0 -> f (Tagged a b) # | |
| TraversableWithIndex i f => TraversableWithIndex i (Reverse f) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => (i -> a -> f0 b) -> Reverse f a -> f0 (Reverse f b) # itraversed :: (Indexable i p, Applicative f0) => p a (f0 b) -> Reverse f a -> f0 (Reverse f b) # | |
| TraversableWithIndex i f => TraversableWithIndex i (Rec1 f) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => (i -> a -> f0 b) -> Rec1 f a -> f0 (Rec1 f b) # itraversed :: (Indexable i p, Applicative f0) => p a (f0 b) -> Rec1 f a -> f0 (Rec1 f b) # | |
| TraversableWithIndex i m => TraversableWithIndex i (IdentityT m) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (i -> a -> f b) -> IdentityT m a -> f (IdentityT m b) # itraversed :: (Indexable i p, Applicative f) => p a (f b) -> IdentityT m a -> f (IdentityT m b) # | |
| TraversableWithIndex i f => TraversableWithIndex i (Backwards f) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => (i -> a -> f0 b) -> Backwards f a -> f0 (Backwards f b) # itraversed :: (Indexable i p, Applicative f0) => p a (f0 b) -> Backwards f a -> f0 (Backwards f b) # | |
| TraversableWithIndex i (Magma i t b) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (i -> a -> f b0) -> Magma i t b a -> f (Magma i t b b0) # itraversed :: (Indexable i p, Applicative f) => p a (f b0) -> Magma i t b a -> f (Magma i t b b0) # | |
| TraversableWithIndex Void (K1 i c :: * -> *) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => (Void -> a -> f b) -> K1 i c a -> f (K1 i c b) # itraversed :: (Indexable Void p, Applicative f) => p a (f b) -> K1 i c a -> f (K1 i c b) # | |
| TraversableWithIndex [Int] Tree | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f => ([Int] -> a -> f b) -> Tree a -> f (Tree b) # itraversed :: (Indexable [Int] p, Applicative f) => p a (f b) -> Tree a -> f (Tree b) # | |
| TraversableWithIndex (E V3) V3 | |
Defined in Linear.V3 Methods itraverse :: Applicative f => (E V3 -> a -> f b) -> V3 a -> f (V3 b) # itraversed :: (Indexable (E V3) p, Applicative f) => p a (f b) -> V3 a -> f (V3 b) # | |
| TraversableWithIndex (E V2) V2 | |
Defined in Linear.V2 Methods itraverse :: Applicative f => (E V2 -> a -> f b) -> V2 a -> f (V2 b) # itraversed :: (Indexable (E V2) p, Applicative f) => p a (f b) -> V2 a -> f (V2 b) # | |
| TraversableWithIndex (E V1) V1 | |
Defined in Linear.V1 Methods itraverse :: Applicative f => (E V1 -> a -> f b) -> V1 a -> f (V1 b) # itraversed :: (Indexable (E V1) p, Applicative f) => p a (f b) -> V1 a -> f (V1 b) # | |
| TraversableWithIndex i f => TraversableWithIndex [i] (Free f) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => ([i] -> a -> f0 b) -> Free f a -> f0 (Free f b) # itraversed :: (Indexable [i] p, Applicative f0) => p a (f0 b) -> Free f a -> f0 (Free f b) # | |
| TraversableWithIndex i f => TraversableWithIndex [i] (Cofree f) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => ([i] -> a -> f0 b) -> Cofree f a -> f0 (Cofree f b) # itraversed :: (Indexable [i] p, Applicative f0) => p a (f0 b) -> Cofree f a -> f0 (Cofree f b) # | |
| (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (Sum f g) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => (Either i j -> a -> f0 b) -> Sum f g a -> f0 (Sum f g b) # itraversed :: (Indexable (Either i j) p, Applicative f0) => p a (f0 b) -> Sum f g a -> f0 (Sum f g b) # | |
| (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (Product f g) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => (Either i j -> a -> f0 b) -> Product f g a -> f0 (Product f g b) # itraversed :: (Indexable (Either i j) p, Applicative f0) => p a (f0 b) -> Product f g a -> f0 (Product f g b) # | |
| (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (f :+: g) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => (Either i j -> a -> f0 b) -> (f :+: g) a -> f0 ((f :+: g) b) # itraversed :: (Indexable (Either i j) p, Applicative f0) => p a (f0 b) -> (f :+: g) a -> f0 ((f :+: g) b) # | |
| (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (Either i j) (f :*: g) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => (Either i j -> a -> f0 b) -> (f :*: g) a -> f0 ((f :*: g) b) # itraversed :: (Indexable (Either i j) p, Applicative f0) => p a (f0 b) -> (f :*: g) a -> f0 ((f :*: g) b) # | |
| (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (i, j) (Compose f g) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => ((i, j) -> a -> f0 b) -> Compose f g a -> f0 (Compose f g b) # itraversed :: (Indexable (i, j) p, Applicative f0) => p a (f0 b) -> Compose f g a -> f0 (Compose f g b) # | |
| (TraversableWithIndex i f, TraversableWithIndex j g) => TraversableWithIndex (i, j) (f :.: g) | |
Defined in Control.Lens.Indexed Methods itraverse :: Applicative f0 => ((i, j) -> a -> f0 b) -> (f :.: g) a -> f0 ((f :.: g) b) # itraversed :: (Indexable (i, j) p, Applicative f0) => p a (f0 b) -> (f :.: g) a -> f0 ((f :.: g) b) # | |
class Functor f => FunctorWithIndex i (f :: * -> *) | f -> i where #
Methods
imap :: (i -> a -> b) -> f a -> f b #
imapped :: (Indexable i p, Settable f) => p a (f b) -> f a -> f (f b) #
Instances
class Foldable f => FoldableWithIndex i (f :: * -> *) | f -> i where #
Methods
ifoldMap :: Monoid m => (i -> a -> m) -> f a -> m #
ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> f a -> f (f a) #
ifoldr :: (i -> a -> b -> b) -> b -> f a -> b #
ifoldl :: (i -> b -> a -> b) -> b -> f a -> b #
Instances
| FoldableWithIndex Int [] | |
Defined in Control.Lens.Indexed | |
| FoldableWithIndex Int ZipList | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Int -> a -> m) -> ZipList a -> m # ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> ZipList a -> f (ZipList a) # ifoldr :: (Int -> a -> b -> b) -> b -> ZipList a -> b # ifoldl :: (Int -> b -> a -> b) -> b -> ZipList a -> b # | |
| FoldableWithIndex Int NonEmpty | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Int -> a -> m) -> NonEmpty a -> m # ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> NonEmpty a -> f (NonEmpty a) # ifoldr :: (Int -> a -> b -> b) -> b -> NonEmpty a -> b # ifoldl :: (Int -> b -> a -> b) -> b -> NonEmpty a -> b # | |
| FoldableWithIndex Int IntMap | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Int -> a -> m) -> IntMap a -> m # ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> IntMap a -> f (IntMap a) # ifoldr :: (Int -> a -> b -> b) -> b -> IntMap a -> b # ifoldl :: (Int -> b -> a -> b) -> b -> IntMap a -> b # | |
| FoldableWithIndex Int Seq | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Int -> a -> m) -> Seq a -> m # ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> Seq a -> f (Seq a) # ifoldr :: (Int -> a -> b -> b) -> b -> Seq a -> b # ifoldl :: (Int -> b -> a -> b) -> b -> Seq a -> b # | |
| FoldableWithIndex Int Vector | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Int -> a -> m) -> Vector a -> m # ifolded :: (Indexable Int p, Contravariant f, Applicative f) => p a (f a) -> Vector a -> f (Vector a) # ifoldr :: (Int -> a -> b -> b) -> b -> Vector a -> b # ifoldl :: (Int -> b -> a -> b) -> b -> Vector a -> b # | |
| FoldableWithIndex () Maybe | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (() -> a -> m) -> Maybe a -> m # ifolded :: (Indexable () p, Contravariant f, Applicative f) => p a (f a) -> Maybe a -> f (Maybe a) # ifoldr :: (() -> a -> b -> b) -> b -> Maybe a -> b # ifoldl :: (() -> b -> a -> b) -> b -> Maybe a -> b # | |
| FoldableWithIndex () Par1 | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (() -> a -> m) -> Par1 a -> m # ifolded :: (Indexable () p, Contravariant f, Applicative f) => p a (f a) -> Par1 a -> f (Par1 a) # ifoldr :: (() -> a -> b -> b) -> b -> Par1 a -> b # ifoldl :: (() -> b -> a -> b) -> b -> Par1 a -> b # | |
| FoldableWithIndex () Identity | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (() -> a -> m) -> Identity a -> m # ifolded :: (Indexable () p, Contravariant f, Applicative f) => p a (f a) -> Identity a -> f (Identity a) # ifoldr :: (() -> a -> b -> b) -> b -> Identity a -> b # ifoldl :: (() -> b -> a -> b) -> b -> Identity a -> b # | |
| FoldableWithIndex k (Map k) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (k -> a -> m) -> Map k a -> m # ifolded :: (Indexable k p, Contravariant f, Applicative f) => p a (f a) -> Map k a -> f (Map k a) # ifoldr :: (k -> a -> b -> b) -> b -> Map k a -> b # ifoldl :: (k -> b -> a -> b) -> b -> Map k a -> b # | |
| FoldableWithIndex k (HashMap k) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (k -> a -> m) -> HashMap k a -> m # ifolded :: (Indexable k p, Contravariant f, Applicative f) => p a (f a) -> HashMap k a -> f (HashMap k a) # ifoldr :: (k -> a -> b -> b) -> b -> HashMap k a -> b # ifoldl :: (k -> b -> a -> b) -> b -> HashMap k a -> b # | |
| FoldableWithIndex k ((,) k) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (k -> a -> m) -> (k, a) -> m # ifolded :: (Indexable k p, Contravariant f, Applicative f) => p a (f a) -> (k, a) -> f (k, a) # ifoldr :: (k -> a -> b -> b) -> b -> (k, a) -> b # ifoldl :: (k -> b -> a -> b) -> b -> (k, a) -> b # | |
| FoldableWithIndex i (Level i) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (i -> a -> m) -> Level i a -> m # ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Level i a -> f (Level i a) # ifoldr :: (i -> a -> b -> b) -> b -> Level i a -> b # ifoldl :: (i -> b -> a -> b) -> b -> Level i a -> b # | |
| Ix i => FoldableWithIndex i (Array i) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (i -> a -> m) -> Array i a -> m # ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Array i a -> f (Array i a) # ifoldr :: (i -> a -> b -> b) -> b -> Array i a -> b # ifoldl :: (i -> b -> a -> b) -> b -> Array i a -> b # | |
| FoldableWithIndex Void (V1 :: * -> *) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Void -> a -> m) -> V1 a -> m # ifolded :: (Indexable Void p, Contravariant f, Applicative f) => p a (f a) -> V1 a -> f (V1 a) # ifoldr :: (Void -> a -> b -> b) -> b -> V1 a -> b # ifoldl :: (Void -> b -> a -> b) -> b -> V1 a -> b # | |
| FoldableWithIndex Void (U1 :: * -> *) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Void -> a -> m) -> U1 a -> m # ifolded :: (Indexable Void p, Contravariant f, Applicative f) => p a (f a) -> U1 a -> f (U1 a) # ifoldr :: (Void -> a -> b -> b) -> b -> U1 a -> b # ifoldl :: (Void -> b -> a -> b) -> b -> U1 a -> b # | |
| FoldableWithIndex Void (Proxy :: * -> *) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Void -> a -> m) -> Proxy a -> m # ifolded :: (Indexable Void p, Contravariant f, Applicative f) => p a (f a) -> Proxy a -> f (Proxy a) # ifoldr :: (Void -> a -> b -> b) -> b -> Proxy a -> b # ifoldl :: (Void -> b -> a -> b) -> b -> Proxy a -> b # | |
| FoldableWithIndex () (Tagged a) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (() -> a0 -> m) -> Tagged a a0 -> m # ifolded :: (Indexable () p, Contravariant f, Applicative f) => p a0 (f a0) -> Tagged a a0 -> f (Tagged a a0) # ifoldr :: (() -> a0 -> b -> b) -> b -> Tagged a a0 -> b # ifoldl :: (() -> b -> a0 -> b) -> b -> Tagged a a0 -> b # | |
| FoldableWithIndex i f => FoldableWithIndex i (Reverse f) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (i -> a -> m) -> Reverse f a -> m # ifolded :: (Indexable i p, Contravariant f0, Applicative f0) => p a (f0 a) -> Reverse f a -> f0 (Reverse f a) # ifoldr :: (i -> a -> b -> b) -> b -> Reverse f a -> b # ifoldl :: (i -> b -> a -> b) -> b -> Reverse f a -> b # | |
| FoldableWithIndex i f => FoldableWithIndex i (Rec1 f) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (i -> a -> m) -> Rec1 f a -> m # ifolded :: (Indexable i p, Contravariant f0, Applicative f0) => p a (f0 a) -> Rec1 f a -> f0 (Rec1 f a) # ifoldr :: (i -> a -> b -> b) -> b -> Rec1 f a -> b # ifoldl :: (i -> b -> a -> b) -> b -> Rec1 f a -> b # | |
| FoldableWithIndex i m => FoldableWithIndex i (IdentityT m) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m0 => (i -> a -> m0) -> IdentityT m a -> m0 # ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> IdentityT m a -> f (IdentityT m a) # ifoldr :: (i -> a -> b -> b) -> b -> IdentityT m a -> b # ifoldl :: (i -> b -> a -> b) -> b -> IdentityT m a -> b # | |
| FoldableWithIndex i f => FoldableWithIndex i (Backwards f) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (i -> a -> m) -> Backwards f a -> m # ifolded :: (Indexable i p, Contravariant f0, Applicative f0) => p a (f0 a) -> Backwards f a -> f0 (Backwards f a) # ifoldr :: (i -> a -> b -> b) -> b -> Backwards f a -> b # ifoldl :: (i -> b -> a -> b) -> b -> Backwards f a -> b # | |
| FoldableWithIndex i (Magma i t b) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (i -> a -> m) -> Magma i t b a -> m # ifolded :: (Indexable i p, Contravariant f, Applicative f) => p a (f a) -> Magma i t b a -> f (Magma i t b a) # ifoldr :: (i -> a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 # ifoldl :: (i -> b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 # ifoldr' :: (i -> a -> b0 -> b0) -> b0 -> Magma i t b a -> b0 # ifoldl' :: (i -> b0 -> a -> b0) -> b0 -> Magma i t b a -> b0 # | |
| FoldableWithIndex Void (K1 i c :: * -> *) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Void -> a -> m) -> K1 i c a -> m # ifolded :: (Indexable Void p, Contravariant f, Applicative f) => p a (f a) -> K1 i c a -> f (K1 i c a) # ifoldr :: (Void -> a -> b -> b) -> b -> K1 i c a -> b # ifoldl :: (Void -> b -> a -> b) -> b -> K1 i c a -> b # | |
| FoldableWithIndex [Int] Tree | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => ([Int] -> a -> m) -> Tree a -> m # ifolded :: (Indexable [Int] p, Contravariant f, Applicative f) => p a (f a) -> Tree a -> f (Tree a) # ifoldr :: ([Int] -> a -> b -> b) -> b -> Tree a -> b # ifoldl :: ([Int] -> b -> a -> b) -> b -> Tree a -> b # | |
| FoldableWithIndex (E V3) V3 | |
Defined in Linear.V3 Methods ifoldMap :: Monoid m => (E V3 -> a -> m) -> V3 a -> m # ifolded :: (Indexable (E V3) p, Contravariant f, Applicative f) => p a (f a) -> V3 a -> f (V3 a) # ifoldr :: (E V3 -> a -> b -> b) -> b -> V3 a -> b # ifoldl :: (E V3 -> b -> a -> b) -> b -> V3 a -> b # | |
| FoldableWithIndex (E V2) V2 | |
Defined in Linear.V2 Methods ifoldMap :: Monoid m => (E V2 -> a -> m) -> V2 a -> m # ifolded :: (Indexable (E V2) p, Contravariant f, Applicative f) => p a (f a) -> V2 a -> f (V2 a) # ifoldr :: (E V2 -> a -> b -> b) -> b -> V2 a -> b # ifoldl :: (E V2 -> b -> a -> b) -> b -> V2 a -> b # | |
| FoldableWithIndex (E V1) V1 | |
Defined in Linear.V1 Methods ifoldMap :: Monoid m => (E V1 -> a -> m) -> V1 a -> m # ifolded :: (Indexable (E V1) p, Contravariant f, Applicative f) => p a (f a) -> V1 a -> f (V1 a) # ifoldr :: (E V1 -> a -> b -> b) -> b -> V1 a -> b # ifoldl :: (E V1 -> b -> a -> b) -> b -> V1 a -> b # | |
| FoldableWithIndex i f => FoldableWithIndex [i] (Free f) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => ([i] -> a -> m) -> Free f a -> m # ifolded :: (Indexable [i] p, Contravariant f0, Applicative f0) => p a (f0 a) -> Free f a -> f0 (Free f a) # ifoldr :: ([i] -> a -> b -> b) -> b -> Free f a -> b # ifoldl :: ([i] -> b -> a -> b) -> b -> Free f a -> b # | |
| FoldableWithIndex i f => FoldableWithIndex [i] (Cofree f) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => ([i] -> a -> m) -> Cofree f a -> m # ifolded :: (Indexable [i] p, Contravariant f0, Applicative f0) => p a (f0 a) -> Cofree f a -> f0 (Cofree f a) # ifoldr :: ([i] -> a -> b -> b) -> b -> Cofree f a -> b # ifoldl :: ([i] -> b -> a -> b) -> b -> Cofree f a -> b # | |
| (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (Sum f g) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Either i j -> a -> m) -> Sum f g a -> m # ifolded :: (Indexable (Either i j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> Sum f g a -> f0 (Sum f g a) # ifoldr :: (Either i j -> a -> b -> b) -> b -> Sum f g a -> b # ifoldl :: (Either i j -> b -> a -> b) -> b -> Sum f g a -> b # ifoldr' :: (Either i j -> a -> b -> b) -> b -> Sum f g a -> b # ifoldl' :: (Either i j -> b -> a -> b) -> b -> Sum f g a -> b # | |
| (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (Product f g) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Either i j -> a -> m) -> Product f g a -> m # ifolded :: (Indexable (Either i j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> Product f g a -> f0 (Product f g a) # ifoldr :: (Either i j -> a -> b -> b) -> b -> Product f g a -> b # ifoldl :: (Either i j -> b -> a -> b) -> b -> Product f g a -> b # ifoldr' :: (Either i j -> a -> b -> b) -> b -> Product f g a -> b # ifoldl' :: (Either i j -> b -> a -> b) -> b -> Product f g a -> b # | |
| (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (f :+: g) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Either i j -> a -> m) -> (f :+: g) a -> m # ifolded :: (Indexable (Either i j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> (f :+: g) a -> f0 ((f :+: g) a) # ifoldr :: (Either i j -> a -> b -> b) -> b -> (f :+: g) a -> b # ifoldl :: (Either i j -> b -> a -> b) -> b -> (f :+: g) a -> b # ifoldr' :: (Either i j -> a -> b -> b) -> b -> (f :+: g) a -> b # ifoldl' :: (Either i j -> b -> a -> b) -> b -> (f :+: g) a -> b # | |
| (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (Either i j) (f :*: g) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => (Either i j -> a -> m) -> (f :*: g) a -> m # ifolded :: (Indexable (Either i j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> (f :*: g) a -> f0 ((f :*: g) a) # ifoldr :: (Either i j -> a -> b -> b) -> b -> (f :*: g) a -> b # ifoldl :: (Either i j -> b -> a -> b) -> b -> (f :*: g) a -> b # ifoldr' :: (Either i j -> a -> b -> b) -> b -> (f :*: g) a -> b # ifoldl' :: (Either i j -> b -> a -> b) -> b -> (f :*: g) a -> b # | |
| (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (i, j) (Compose f g) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => ((i, j) -> a -> m) -> Compose f g a -> m # ifolded :: (Indexable (i, j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> Compose f g a -> f0 (Compose f g a) # ifoldr :: ((i, j) -> a -> b -> b) -> b -> Compose f g a -> b # ifoldl :: ((i, j) -> b -> a -> b) -> b -> Compose f g a -> b # ifoldr' :: ((i, j) -> a -> b -> b) -> b -> Compose f g a -> b # ifoldl' :: ((i, j) -> b -> a -> b) -> b -> Compose f g a -> b # | |
| (FoldableWithIndex i f, FoldableWithIndex j g) => FoldableWithIndex (i, j) (f :.: g) | |
Defined in Control.Lens.Indexed Methods ifoldMap :: Monoid m => ((i, j) -> a -> m) -> (f :.: g) a -> m # ifolded :: (Indexable (i, j) p, Contravariant f0, Applicative f0) => p a (f0 a) -> (f :.: g) a -> f0 ((f :.: g) a) # ifoldr :: ((i, j) -> a -> b -> b) -> b -> (f :.: g) a -> b # ifoldl :: ((i, j) -> b -> a -> b) -> b -> (f :.: g) a -> b # ifoldr' :: ((i, j) -> a -> b -> b) -> b -> (f :.: g) a -> b # ifoldl' :: ((i, j) -> b -> a -> b) -> b -> (f :.: g) a -> b # | |
type IndexedGetting i m s a = Indexed i a (Const m a) -> s -> Const m s #
data Identical (a :: k) (b :: k1) (s :: k) (t :: k1) :: forall k k1. k -> k1 -> k -> k1 -> * where #
type AnEquality' (s :: k2) (a :: k2) = AnEquality s s a a #
type AnEquality (s :: k1) (t :: k2) (a :: k1) (b :: k2) = Identical a (Proxy b) a (Proxy b) -> Identical a (Proxy b) s (Proxy t) #
Instances
class Each s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Instances
| (a ~ Word8, b ~ Word8) => Each ByteString ByteString a b | |
Defined in Control.Lens.Each Methods each :: Traversal ByteString ByteString a b # | |
| (a ~ Word8, b ~ Word8) => Each ByteString ByteString a b | |
Defined in Control.Lens.Each Methods each :: Traversal ByteString ByteString a b # | |
| (a ~ Char, b ~ Char) => Each Text Text a b | |
| (a ~ Char, b ~ Char) => Each Text Text a b | |
| Each Name Name AName AName | |
Defined in Diagrams.Core.Names | |
| Each ColourMap ColourMap (AlphaColour Double) (AlphaColour Double) | |
Defined in Plots.Style Methods each :: Traversal ColourMap ColourMap (AlphaColour Double) (AlphaColour Double) # | |
| Each [a] [b] a b | |
Defined in Control.Lens.Each | |
| Each (Maybe a) (Maybe b) a b | |
| Each (Identity a) (Identity b) a b | |
| Each (Complex a) (Complex b) a b | |
| Each (NonEmpty a) (NonEmpty b) a b | |
| Each (IntMap a) (IntMap b) a b | |
| Each (Tree a) (Tree b) a b | |
| Each (Seq a) (Seq b) a b | |
| (Unbox a, Unbox b) => Each (Vector a) (Vector b) a b | |
Defined in Control.Lens.Each | |
| Each (V3 a) (V3 b) a b | |
| Each (V2 a) (V2 b) a b | |
| (Storable a, Storable b) => Each (Vector a) (Vector b) a b | |
Defined in Control.Lens.Each | |
| Each (Vector a) (Vector b) a b | |
Defined in Control.Lens.Each | |
| (Prim a, Prim b) => Each (Vector a) (Vector b) a b | |
Defined in Control.Lens.Each | |
| Each (V1 a) (V1 b) a b | |
| (a ~ a', b ~ b') => Each (a, a') (b, b') a b | |
Defined in Control.Lens.Each | |
| c ~ d => Each (Map c a) (Map d b) a b | |
| (Ix i, IArray UArray a, IArray UArray b, i ~ j) => Each (UArray i a) (UArray j b) a b | |
| (Ix i, i ~ j) => Each (Array i a) (Array j b) a b | |
| Traversable f => Each (Point f a) (Point f b) a b | |
Defined in Linear.Affine | |
| c ~ d => Each (HashMap c a) (HashMap d b) a b | |
Defined in Control.Lens.Each | |
| Each (Path v n) (Path v' n') (Located (Trail v n)) (Located (Trail v' n')) | |
Defined in Diagrams.Path | |
| (Additive v', Foldable v', Ord n') => Each (BoundingBox v n) (BoundingBox v' n') (Point v n) (Point v' n') | |
Defined in Diagrams.BoundingBox | |
| Each (Style v n) (Style v' n') (Attribute v n) (Attribute v' n') | |
Defined in Diagrams.Core.Style | |
| (a ~ a2, a ~ a3, b ~ b2, b ~ b3) => Each (a, a2, a3) (b, b2, b3) a b | |
Defined in Control.Lens.Each | |
| (a ~ a2, a ~ a3, a ~ a4, b ~ b2, b ~ b3, b ~ b4) => Each (a, a2, a3, a4) (b, b2, b3, b4) a b | |
Defined in Control.Lens.Each | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5, b ~ b2, b ~ b3, b ~ b4, b ~ b5) => Each (a, a2, a3, a4, a5) (b, b2, b3, b4, b5) a b | |
Defined in Control.Lens.Each | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, b ~ b2, b ~ b3, b ~ b4, b ~ b5, b ~ b6) => Each (a, a2, a3, a4, a5, a6) (b, b2, b3, b4, b5, b6) a b | |
Defined in Control.Lens.Each | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, b ~ b2, b ~ b3, b ~ b4, b ~ b5, b ~ b6, b ~ b7) => Each (a, a2, a3, a4, a5, a6, a7) (b, b2, b3, b4, b5, b6, b7) a b | |
Defined in Control.Lens.Each | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, a ~ a8, b ~ b2, b ~ b3, b ~ b4, b ~ b5, b ~ b6, b ~ b7, b ~ b8) => Each (a, a2, a3, a4, a5, a6, a7, a8) (b, b2, b3, b4, b5, b6, b7, b8) a b | |
Defined in Control.Lens.Each | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, a ~ a8, a ~ a9, b ~ b2, b ~ b3, b ~ b4, b ~ b5, b ~ b6, b ~ b7, b ~ b8, b ~ b9) => Each (a, a2, a3, a4, a5, a6, a7, a8, a9) (b, b2, b3, b4, b5, b6, b7, b8, b9) a b | |
Defined in Control.Lens.Each | |
class Snoc s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Minimal complete definition
Instances
| Snoc ByteString ByteString Word8 Word8 | |
Defined in Control.Lens.Cons Methods _Snoc :: Prism ByteString ByteString (ByteString, Word8) (ByteString, Word8) # | |
| Snoc ByteString ByteString Word8 Word8 | |
Defined in Control.Lens.Cons Methods _Snoc :: Prism ByteString ByteString (ByteString, Word8) (ByteString, Word8) # | |
| Snoc Text Text Char Char | |
| Snoc Text Text Char Char | |
| Snoc [a] [b] a b | |
Defined in Control.Lens.Cons | |
| Snoc (ZipList a) (ZipList b) a b | |
| Snoc (Seq a) (Seq b) a b | |
| (Unbox a, Unbox b) => Snoc (Vector a) (Vector b) a b | |
Defined in Control.Lens.Cons | |
| (Storable a, Storable b) => Snoc (Vector a) (Vector b) a b | |
Defined in Control.Lens.Cons | |
| Snoc (Vector a) (Vector b) a b | |
Defined in Control.Lens.Cons | |
| (Prim a, Prim b) => Snoc (Vector a) (Vector b) a b | |
Defined in Control.Lens.Cons | |
| Snoc (Path v n) (Path v' n') (Located (Trail v n)) (Located (Trail v' n')) | |
Defined in Diagrams.Path | |
| (Metric v, OrderedField n, Metric u, OrderedField n') => Snoc (SegTree v n) (SegTree u n') (Segment Closed v n) (Segment Closed u n') | |
Defined in Diagrams.Trail | |
| (Metric v, OrderedField n, Metric u, OrderedField n') => Snoc (Trail' Line v n) (Trail' Line u n') (Segment Closed v n) (Segment Closed u n') | |
Defined in Diagrams.Trail | |
class Cons s t a b | s -> a, t -> b, s b -> t, t a -> s where #
Minimal complete definition
Instances
| Cons ByteString ByteString Word8 Word8 | |
Defined in Control.Lens.Cons Methods _Cons :: Prism ByteString ByteString (Word8, ByteString) (Word8, ByteString) # | |
| Cons ByteString ByteString Word8 Word8 | |
Defined in Control.Lens.Cons Methods _Cons :: Prism ByteString ByteString (Word8, ByteString) (Word8, ByteString) # | |
| Cons Text Text Char Char | |
| Cons Text Text Char Char | |
| Cons [a] [b] a b | |
Defined in Control.Lens.Cons | |
| Cons (ZipList a) (ZipList b) a b | |
| Cons (Seq a) (Seq b) a b | |
| (Unbox a, Unbox b) => Cons (Vector a) (Vector b) a b | |
Defined in Control.Lens.Cons | |
| (Storable a, Storable b) => Cons (Vector a) (Vector b) a b | |
Defined in Control.Lens.Cons | |
| Cons (Vector a) (Vector b) a b | |
Defined in Control.Lens.Cons | |
| (Prim a, Prim b) => Cons (Vector a) (Vector b) a b | |
Defined in Control.Lens.Cons | |
| Cons (Path v n) (Path v' n') (Located (Trail v n)) (Located (Trail v' n')) | |
Defined in Diagrams.Path | |
| (Metric v, OrderedField n, Metric u, OrderedField n') => Cons (SegTree v n) (SegTree u n') (Segment Closed v n) (Segment Closed u n') | |
Defined in Diagrams.Trail | |
| (Metric v, OrderedField n, Metric u, OrderedField n') => Cons (Trail' Line v n) (Trail' Line u n') (Segment Closed v n) (Segment Closed u n') | |
Defined in Diagrams.Trail | |
Methods
ix :: Index m -> Traversal' m (IxValue m) #
Instances
| Ixed ByteString | |
Defined in Control.Lens.At Methods ix :: Index ByteString -> Traversal' ByteString (IxValue ByteString) # | |
| Ixed ByteString | |
Defined in Control.Lens.At Methods ix :: Index ByteString -> Traversal' ByteString (IxValue ByteString) # | |
| Ixed Text | |
Defined in Control.Lens.At | |
| Ixed Text | |
Defined in Control.Lens.At | |
| Ixed IntSet | |
Defined in Control.Lens.At | |
| Ixed ColourMap | |
Defined in Plots.Style | |
| Ixed [a] | |
Defined in Control.Lens.At Methods ix :: Index [a] -> Traversal' [a] (IxValue [a]) # | |
| Ixed (Maybe a) | |
Defined in Control.Lens.At | |
| Ixed (Identity a) | |
Defined in Control.Lens.At | |
| Ixed (NonEmpty a) | |
Defined in Control.Lens.At | |
| Ixed (IntMap a) | |
Defined in Control.Lens.At | |
| Ixed (Tree a) | |
Defined in Control.Lens.At | |
| Ixed (Seq a) | |
Defined in Control.Lens.At | |
| Ord k => Ixed (Set k) | |
Defined in Control.Lens.At | |
| Unbox a => Ixed (Vector a) | |
Defined in Control.Lens.At Methods ix :: Index (Vector a) -> Traversal' (Vector a) (IxValue (Vector a)) # | |
| Ixed (V3 a) | |
| Ixed (V2 a) | |
| Storable a => Ixed (Vector a) | |
Defined in Control.Lens.At Methods ix :: Index (Vector a) -> Traversal' (Vector a) (IxValue (Vector a)) # | |
| Ixed (Vector a) | |
Defined in Control.Lens.At Methods ix :: Index (Vector a) -> Traversal' (Vector a) (IxValue (Vector a)) # | |
| Prim a => Ixed (Vector a) | |
Defined in Control.Lens.At Methods ix :: Index (Vector a) -> Traversal' (Vector a) (IxValue (Vector a)) # | |
| (Eq k, Hashable k) => Ixed (HashSet k) | |
Defined in Control.Lens.At Methods ix :: Index (HashSet k) -> Traversal' (HashSet k) (IxValue (HashSet k)) # | |
| Ixed (V1 a) | |
| Eq e => Ixed (e -> a) | |
Defined in Control.Lens.At Methods ix :: Index (e -> a) -> Traversal' (e -> a) (IxValue (e -> a)) # | |
| a ~ a2 => Ixed (a, a2) | |
Defined in Control.Lens.At Methods ix :: Index (a, a2) -> Traversal' (a, a2) (IxValue (a, a2)) # | |
| Ord k => Ixed (Map k a) | |
Defined in Control.Lens.At | |
| (IArray UArray e, Ix i) => Ixed (UArray i e) | |
Defined in Control.Lens.At | |
| Ix i => Ixed (Array i e) | |
Defined in Control.Lens.At | |
| Ixed (Style v n) | |
Defined in Diagrams.Core.Style Methods ix :: Index (Style v n) -> Traversal' (Style v n) (IxValue (Style v n)) # | |
| Ixed (f a) => Ixed (Point f a) | |
Defined in Linear.Affine Methods ix :: Index (Point f a) -> Traversal' (Point f a) (IxValue (Point f a)) # | |
| (Eq k, Hashable k) => Ixed (HashMap k a) | |
Defined in Control.Lens.At Methods ix :: Index (HashMap k a) -> Traversal' (HashMap k a) (IxValue (HashMap k a)) # | |
| (a ~ a2, a ~ a3) => Ixed (a, a2, a3) | |
Defined in Control.Lens.At Methods ix :: Index (a, a2, a3) -> Traversal' (a, a2, a3) (IxValue (a, a2, a3)) # | |
| (a ~ a2, a ~ a3, a ~ a4) => Ixed (a, a2, a3, a4) | |
Defined in Control.Lens.At Methods ix :: Index (a, a2, a3, a4) -> Traversal' (a, a2, a3, a4) (IxValue (a, a2, a3, a4)) # | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5) => Ixed (a, a2, a3, a4, a5) | |
Defined in Control.Lens.At Methods ix :: Index (a, a2, a3, a4, a5) -> Traversal' (a, a2, a3, a4, a5) (IxValue (a, a2, a3, a4, a5)) # | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6) => Ixed (a, a2, a3, a4, a5, a6) | |
Defined in Control.Lens.At Methods ix :: Index (a, a2, a3, a4, a5, a6) -> Traversal' (a, a2, a3, a4, a5, a6) (IxValue (a, a2, a3, a4, a5, a6)) # | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7) => Ixed (a, a2, a3, a4, a5, a6, a7) | |
Defined in Control.Lens.At Methods ix :: Index (a, a2, a3, a4, a5, a6, a7) -> Traversal' (a, a2, a3, a4, a5, a6, a7) (IxValue (a, a2, a3, a4, a5, a6, a7)) # | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, a ~ a8) => Ixed (a, a2, a3, a4, a5, a6, a7, a8) | |
Defined in Control.Lens.At Methods ix :: Index (a, a2, a3, a4, a5, a6, a7, a8) -> Traversal' (a, a2, a3, a4, a5, a6, a7, a8) (IxValue (a, a2, a3, a4, a5, a6, a7, a8)) # | |
| (a ~ a2, a ~ a3, a ~ a4, a ~ a5, a ~ a6, a ~ a7, a ~ a8, a ~ a9) => Ixed (a, a2, a3, a4, a5, a6, a7, a8, a9) | |
Defined in Control.Lens.At Methods ix :: Index (a, a2, a3, a4, a5, a6, a7, a8, a9) -> Traversal' (a, a2, a3, a4, a5, a6, a7, a8, a9) (IxValue (a, a2, a3, a4, a5, a6, a7, a8, a9)) # | |
Instances
| type IxValue ByteString | |
Defined in Control.Lens.At | |
| type IxValue ByteString | |
Defined in Control.Lens.At | |
| type IxValue Text | |
Defined in Control.Lens.At | |
| type IxValue Text | |
Defined in Control.Lens.At | |
| type IxValue IntSet | |
Defined in Control.Lens.At | |
| type IxValue ColourMap | |
Defined in Plots.Style | |
| type IxValue [a] | |
Defined in Control.Lens.At type IxValue [a] = a | |
| type IxValue (Maybe a) | |
Defined in Control.Lens.At | |
| type IxValue (Identity a) | |
Defined in Control.Lens.At | |
| type IxValue (NonEmpty a) | |
Defined in Control.Lens.At | |
| type IxValue (IntMap a) | |
Defined in Control.Lens.At | |
| type IxValue (Tree a) | |
Defined in Control.Lens.At | |
| type IxValue (Seq a) | |
Defined in Control.Lens.At | |
| type IxValue (Set k) | |
Defined in Control.Lens.At | |
| type IxValue (Vector a) | |
Defined in Control.Lens.At type IxValue (Vector a) = a | |
| type IxValue (V3 a) | |
| type IxValue (V2 a) | |
| type IxValue (Vector a) | |
Defined in Control.Lens.At type IxValue (Vector a) = a | |
| type IxValue (Vector a) | |
Defined in Control.Lens.At type IxValue (Vector a) = a | |
| type IxValue (Vector a) | |
Defined in Control.Lens.At type IxValue (Vector a) = a | |
| type IxValue (HashSet k) | |
Defined in Control.Lens.At type IxValue (HashSet k) = () | |
| type IxValue (V1 a) | |
| type IxValue (e -> a) | |
Defined in Control.Lens.At type IxValue (e -> a) = a | |
| type IxValue (a, a2) | |
Defined in Control.Lens.At type IxValue (a, a2) = a | |
| type IxValue (Map k a) | |
Defined in Control.Lens.At | |
| type IxValue (UArray i e) | |
Defined in Control.Lens.At | |
| type IxValue (Array i e) | |
Defined in Control.Lens.At | |
| type IxValue (Style v n) | |
Defined in Diagrams.Core.Style type IxValue (Style v n) = Attribute v n | |
| type IxValue (Point f a) | |
Defined in Linear.Affine | |
| type IxValue (HashMap k a) | |
Defined in Control.Lens.At type IxValue (HashMap k a) = a | |
| type IxValue (a, a2, a3) | |
Defined in Control.Lens.At type IxValue (a, a2, a3) = a | |
| type IxValue (a, a2, a3, a4) | |
Defined in Control.Lens.At type IxValue (a, a2, a3, a4) = a | |
| type IxValue (a, a2, a3, a4, a5) | |
Defined in Control.Lens.At type IxValue (a, a2, a3, a4, a5) = a | |
| type IxValue (a, a2, a3, a4, a5, a6) | |
Defined in Control.Lens.At type IxValue (a, a2, a3, a4, a5, a6) = a | |
| type IxValue (a, a2, a3, a4, a5, a6, a7) | |
Defined in Control.Lens.At type IxValue (a, a2, a3, a4, a5, a6, a7) = a | |
| type IxValue (a, a2, a3, a4, a5, a6, a7, a8) | |
Defined in Control.Lens.At type IxValue (a, a2, a3, a4, a5, a6, a7, a8) = a | |
| type IxValue (a, a2, a3, a4, a5, a6, a7, a8, a9) | |
Defined in Control.Lens.At type IxValue (a, a2, a3, a4, a5, a6, a7, a8, a9) = a | |
Instances
| type Index ByteString | |
Defined in Control.Lens.At | |
| type Index ByteString | |
Defined in Control.Lens.At | |
| type Index Text | |
Defined in Control.Lens.At | |
| type Index Text | |
Defined in Control.Lens.At | |
| type Index IntSet | |
Defined in Control.Lens.At | |
| type Index ColourMap | |
Defined in Plots.Style | |
| type Index [a] | |
Defined in Control.Lens.At | |
| type Index (Maybe a) | |
Defined in Control.Lens.At | |
| type Index (Identity a) | |
Defined in Control.Lens.At | |
| type Index (Complex a) | |
Defined in Control.Lens.At | |
| type Index (NonEmpty a) | |
Defined in Control.Lens.At | |
| type Index (IntMap a) | |
Defined in Control.Lens.At | |
| type Index (Tree a) | |
Defined in Control.Lens.At | |
| type Index (Seq a) | |
Defined in Control.Lens.At | |
| type Index (Set a) | |
Defined in Control.Lens.At | |
| type Index (Vector a) | |
Defined in Control.Lens.At | |
| type Index (V3 a) | |
| type Index (V2 a) | |
| type Index (Vector a) | |
Defined in Control.Lens.At | |
| type Index (Vector a) | |
Defined in Control.Lens.At | |
| type Index (Vector a) | |
Defined in Control.Lens.At | |
| type Index (HashSet a) | |
Defined in Control.Lens.At type Index (HashSet a) = a | |
| type Index (V1 a) | |
| type Index (e -> a) | |
Defined in Control.Lens.At type Index (e -> a) = e | |
| type Index (a, b) | |
Defined in Control.Lens.At | |
| type Index (Map k a) | |
Defined in Control.Lens.At | |
| type Index (UArray i e) | |
Defined in Control.Lens.At | |
| type Index (Array i e) | |
Defined in Control.Lens.At | |
| type Index (Style v n) | |
Defined in Diagrams.Core.Style | |
| type Index (Point f a) | |
Defined in Linear.Affine | |
| type Index (HashMap k a) | |
Defined in Control.Lens.At type Index (HashMap k a) = k | |
| type Index (a, b, c) | |
Defined in Control.Lens.At | |
| type Index (a, b, c, d) | |
Defined in Control.Lens.At | |
| type Index (a, b, c, d, e) | |
Defined in Control.Lens.At | |
| type Index (a, b, c, d, e, f) | |
Defined in Control.Lens.At | |
| type Index (a, b, c, d, e, f, g) | |
Defined in Control.Lens.At | |
| type Index (a, b, c, d, e, f, g, h) | |
Defined in Control.Lens.At | |
| type Index (a, b, c, d, e, f, g, h, i) | |
Defined in Control.Lens.At | |
Minimal complete definition
Minimal complete definition
class Contravariant (f :: * -> *) where #
Minimal complete definition
Instances
traverseBy :: Traversable t => (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (a -> f b) -> t a -> f (t b) #
sequenceBy :: Traversable t => (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> t (f a) -> f (t a) #
alaf :: (Functor f, Functor g, Rewrapping s t) => (Unwrapped s -> s) -> (f t -> g s) -> f (Unwrapped t) -> g (Unwrapped s) #
ala :: (Functor f, Rewrapping s t) => (Unwrapped s -> s) -> ((Unwrapped t -> t) -> f s) -> f (Unwrapped s) #
_Unwrapping :: Rewrapping s t => (Unwrapped s -> s) -> Iso (Unwrapped t) (Unwrapped s) t s #
_Unwrapped' :: Wrapped s => Iso' (Unwrapped s) s #
_Unwrapped :: Rewrapping s t => Iso (Unwrapped t) (Unwrapped s) t s #
_GWrapped' :: (Generic s, D1 d (C1 c (S1 s' (Rec0 a))) ~ Rep s, Unwrapped s ~ GUnwrapped (Rep s)) => Iso' s (Unwrapped s) #
unsafeSingular :: (HasCallStack, Conjoined p, Functor f) => Traversing p f s t a b -> Over p f s t a b #
unsafePartsOf' :: ATraversal s t a b -> Lens s t [a] [b] #
unsafePartsOf :: Functor f => Traversing ((->) :: * -> * -> *) f s t a b -> LensLike f s t [a] [b] #
traversed64 :: Traversable f => IndexedTraversal Int64 (f a) (f b) a b #
traversed1 :: Traversable1 f => IndexedTraversal1 Int (f a) (f b) a b #
traversed :: Traversable f => IndexedTraversal Int (f a) (f b) a b #
traverseOf :: LensLike f s t a b -> (a -> f b) -> s -> f t #
traverseByOf :: Traversal s t a b -> (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (a -> f b) -> s -> f t #
transposeOf :: LensLike ZipList s t [a] a -> s -> [t] #
taking :: (Conjoined p, Applicative f) => Int -> Traversing p f s t a a -> Over p f s t a a #
singular :: (HasCallStack, Conjoined p, Functor f) => Traversing p f s t a a -> Over p f s t a a #
sequenceOf :: LensLike (WrappedMonad m) s t (m b) b -> s -> m t #
sequenceByOf :: Traversal s t (f b) b -> (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> s -> f t #
sequenceAOf :: LensLike f s t (f b) b -> s -> f t #
partsOf' :: ATraversal s t a a -> Lens s t [a] [a] #
mapMOf :: LensLike (WrappedMonad m) s t a b -> (a -> m b) -> s -> m t #
mapAccumROf :: LensLike (Backwards (State acc)) s t a b -> (acc -> a -> (acc, b)) -> acc -> s -> (acc, t) #
mapAccumLOf :: LensLike (State acc) s t a b -> (acc -> a -> (acc, b)) -> acc -> s -> (acc, t) #
loci :: Applicative f => (a -> f b) -> Bazaar ((->) :: * -> * -> *) a c s -> f (Bazaar ((->) :: * -> * -> *) b c s) #
iunsafePartsOf' :: Over (Indexed i) (Bazaar (Indexed i) a b) s t a b -> IndexedLens [i] s t [a] [b] #
iunsafePartsOf :: (Indexable [i] p, Functor f) => Traversing (Indexed i) f s t a b -> Over p f s t [a] [b] #
itraverseOf :: (Indexed i a (f b) -> s -> f t) -> (i -> a -> f b) -> s -> f t #
ipartsOf' :: (Indexable [i] p, Functor f) => Over (Indexed i) (Bazaar' (Indexed i) a) s t a a -> Over p f s t [a] [a] #
ipartsOf :: (Indexable [i] p, Functor f) => Traversing (Indexed i) f s t a a -> Over p f s t [a] [a] #
imapMOf :: Over (Indexed i) (WrappedMonad m) s t a b -> (i -> a -> m b) -> s -> m t #
imapAccumROf :: Over (Indexed i) (Backwards (State acc)) s t a b -> (i -> acc -> a -> (acc, b)) -> acc -> s -> (acc, t) #
imapAccumLOf :: Over (Indexed i) (State acc) s t a b -> (i -> acc -> a -> (acc, b)) -> acc -> s -> (acc, t) #
iloci :: (Indexable i p, Applicative f) => p a (f b) -> Bazaar (Indexed i) a c s -> f (Bazaar (Indexed i) b c s) #
ignored :: Applicative f => pafb -> s -> f s #
iforMOf :: (Indexed i a (WrappedMonad m b) -> s -> WrappedMonad m t) -> s -> (i -> a -> m b) -> m t #
forMOf :: LensLike (WrappedMonad m) s t a b -> s -> (a -> m b) -> m t #
failing :: (Conjoined p, Applicative f) => Traversing p f s t a b -> Over p f s t a b -> Over p f s t a b #
elementsOf :: Applicative f => LensLike (Indexing f) s t a a -> (Int -> Bool) -> IndexedLensLike Int f s t a a #
elements :: Traversable t => (Int -> Bool) -> IndexedTraversal' Int (t a) a #
elementOf :: Applicative f => LensLike (Indexing f) s t a a -> Int -> IndexedLensLike Int f s t a a #
element :: Traversable t => Int -> IndexedTraversal' Int (t a) a #
dropping :: (Conjoined p, Applicative f) => Int -> Over p (Indexing f) s t a a -> Over p f s t a a #
deepOf :: (Conjoined p, Applicative f) => LensLike f s t s t -> Traversing p f s t a b -> Over p f s t a b #
confusing :: Applicative f => LensLike (Curried (Yoneda f) (Yoneda f)) s t a b -> LensLike f s t a b #
cloneTraversal1 :: ATraversal1 s t a b -> Traversal1 s t a b #
cloneTraversal :: ATraversal s t a b -> Traversal s t a b #
cloneIndexedTraversal1 :: AnIndexedTraversal1 i s t a b -> IndexedTraversal1 i s t a b #
cloneIndexedTraversal :: AnIndexedTraversal i s t a b -> IndexedTraversal i s t a b #
cloneIndexPreservingTraversal1 :: ATraversal1 s t a b -> IndexPreservingTraversal1 s t a b #
cloneIndexPreservingTraversal :: ATraversal s t a b -> IndexPreservingTraversal s t a b #
both1 :: Bitraversable1 r => Traversal1 (r a a) (r b b) a b #
both :: Bitraversable r => Traversal (r a a) (r b b) a b #
beside :: (Representable q, Applicative (Rep q), Applicative f, Bitraversable r) => Optical p q f s t a b -> Optical p q f s' t' a b -> Optical p q f (r s s') (r t t') a b #
mappingNamer :: (String -> [String]) -> FieldNamer #
makeWrapped :: Name -> DecsQ #
makeLensesWith :: LensRules -> Name -> DecsQ #
makeLenses :: Name -> DecsQ #
makeFieldsNoPrefix :: Name -> DecsQ #
makeFields :: Name -> DecsQ #
makeClassy_ :: Name -> DecsQ #
makeClassy :: Name -> DecsQ #
lookingupNamer :: [(String, String)] -> FieldNamer #
lensRulesFor :: [(String, String)] -> LensRules #
declareWrapped :: DecsQ -> DecsQ #
declarePrisms :: DecsQ -> DecsQ #
declareLensesWith :: LensRules -> DecsQ -> DecsQ #
declareLenses :: DecsQ -> DecsQ #
declareFields :: DecsQ -> DecsQ #
declareClassy :: DecsQ -> DecsQ #
setting :: ((a -> b) -> s -> t) -> IndexPreservingSetter s t a b #
sets :: (Profunctor p, Profunctor q, Settable f) => (p a b -> q s t) -> Optical p q f s t a b #
scribe :: (MonadWriter t m, Monoid s) => ASetter s t a b -> b -> m () #
passing :: MonadWriter w m => Setter w w u v -> m (a, u -> v) -> m a #
modifying :: MonadState s m => ASetter s s a b -> (a -> b) -> m () #
isets :: ((i -> a -> b) -> s -> t) -> IndexedSetter i s t a b #
iset :: AnIndexedSetter i s t a b -> (i -> b) -> s -> t #
ipassing :: MonadWriter w m => IndexedSetter i w w u v -> m (a, i -> u -> v) -> m a #
iover :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> t #
imodifying :: MonadState s m => AnIndexedSetter i s s a b -> (i -> a -> b) -> m () #
imapOf :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> t #
icensoring :: MonadWriter w m => IndexedSetter i w w u v -> (i -> u -> v) -> m a -> m a #
contramapped :: Contravariant f => Setter (f b) (f a) a b #
cloneSetter :: ASetter s t a b -> Setter s t a b #
cloneIndexedSetter :: AnIndexedSetter i s t a b -> IndexedSetter i s t a b #
cloneIndexPreservingSetter :: ASetter s t a b -> IndexPreservingSetter s t a b #
censoring :: MonadWriter w m => Setter w w u v -> (u -> v) -> m a -> m a #
assign :: MonadState s m => ASetter s s a b -> b -> m () #
argument :: Profunctor p => Setter (p b r) (p a r) a b #
(^^~) :: (Fractional a, Integral e) => ASetter s t a a -> e -> s -> t #
(^^=) :: (MonadState s m, Fractional a, Integral e) => ASetter' s a -> e -> m () #
(?=) :: MonadState s m => ASetter s s a (Maybe b) -> b -> m () #
(<~) :: MonadState s m => ASetter s s a b -> m b -> m () #
(<?=) :: MonadState s m => ASetter s s a (Maybe b) -> b -> m b #
(<>=) :: (MonadState s m, Monoid a) => ASetter' s a -> a -> m () #
(<.=) :: MonadState s m => ASetter s s a b -> b -> m b #
(//~) :: Fractional a => ASetter s t a a -> a -> s -> t #
(//=) :: (MonadState s m, Fractional a) => ASetter' s a -> a -> m () #
(.@~) :: AnIndexedSetter i s t a b -> (i -> b) -> s -> t #
(.@=) :: MonadState s m => AnIndexedSetter i s s a b -> (i -> b) -> m () #
(.=) :: MonadState s m => ASetter s s a b -> b -> m () #
(-=) :: (MonadState s m, Num a) => ASetter' s a -> a -> m () #
(+=) :: (MonadState s m, Num a) => ASetter' s a -> a -> m () #
(*=) :: (MonadState s m, Num a) => ASetter' s a -> a -> m () #
(**=) :: (MonadState s m, Floating a) => ASetter' s a -> a -> m () #
(%@~) :: AnIndexedSetter i s t a b -> (i -> a -> b) -> s -> t #
(%@=) :: MonadState s m => AnIndexedSetter i s s a b -> (i -> a -> b) -> m () #
(%=) :: MonadState s m => ASetter s s a b -> (a -> b) -> m () #
reviews :: MonadReader b m => AReview t b -> (t -> r) -> m r #
review :: MonadReader b m => AReview t b -> m t #
reuses :: MonadState b m => AReview t b -> (t -> r) -> m r #
reuse :: MonadState b m => AReview t b -> m t #
without :: APrism s t a b -> APrism u v c d -> Prism (Either s u) (Either t v) (Either a c) (Either b d) #
clonePrism :: APrism s t a b -> Prism s t a b #
below :: Traversable f => APrism' s a -> Prism' (f s) (f a) #
_Void :: (Choice p, Applicative f) => p a (f Void) -> p s (f s) #
universeOnOf :: Getting [a] s a -> Getting [a] a a -> s -> [a] #
universeOn :: Plated a => Getting [a] s a -> s -> [a] #
universeOf :: Getting [a] a a -> a -> [a] #
transformOnOf :: ASetter s t a b -> ASetter a b a b -> (b -> b) -> s -> t #
transformOn :: Plated a => ASetter s t a a -> (a -> a) -> s -> t #
transformOf :: ASetter a b a b -> (b -> b) -> a -> b #
transformMOnOf :: Monad m => LensLike (WrappedMonad m) s t a b -> LensLike (WrappedMonad m) a b a b -> (b -> m b) -> s -> m t #
transformMOn :: (Monad m, Plated a) => LensLike (WrappedMonad m) s t a a -> (a -> m a) -> s -> m t #
transformMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m b) -> a -> m b #
transformM :: (Monad m, Plated a) => (a -> m a) -> a -> m a #
rewriteOnOf :: ASetter s t a b -> ASetter a b a b -> (b -> Maybe a) -> s -> t #
rewriteMOnOf :: Monad m => LensLike (WrappedMonad m) s t a b -> LensLike (WrappedMonad m) a b a b -> (b -> m (Maybe a)) -> s -> m t #
rewriteMOn :: (Monad m, Plated a) => LensLike (WrappedMonad m) s t a a -> (a -> m (Maybe a)) -> s -> m t #
rewriteMOf :: Monad m => LensLike (WrappedMonad m) a b a b -> (b -> m (Maybe a)) -> a -> m b #
holesOnOf :: Conjoined p => LensLike (Bazaar p r r) s t a b -> Over p (Bazaar p r r) a b r r -> s -> [Pretext p r r t] #
deep :: (Conjoined p, Applicative f, Plated s) => Traversing p f s s a b -> Over p f s s a b #
cosmosOnOf :: (Applicative f, Contravariant f) => LensLike' f s a -> LensLike' f a a -> LensLike' f s a #
cosmosOn :: (Applicative f, Contravariant f, Plated a) => LensLike' f s a -> LensLike' f s a #
cosmosOf :: (Applicative f, Contravariant f) => LensLike' f a a -> LensLike' f a a #
contextsOnOf :: ATraversal s t a a -> ATraversal' a a -> s -> [Context a a t] #
contextsOn :: Plated a => ATraversal s t a a -> s -> [Context a a t] #
contextsOf :: ATraversal' a a -> a -> [Context a a a] #
composOpFold :: Plated a => b -> (b -> b -> b) -> (a -> b) -> a -> b #
levels :: Applicative f => Traversing ((->) :: * -> * -> *) f s t a b -> IndexedLensLike Int f s t (Level () a) (Level () b) #
ilevels :: Applicative f => Traversing (Indexed i) f s t a b -> IndexedLensLike Int f s t (Level i a) (Level j b) #
iplens :: (s -> a) -> (s -> b -> t) -> IndexPreservingLens s t a b #
ilens :: (s -> (i, a)) -> (s -> b -> t) -> IndexedLens i s t a b #
cloneIndexedLens :: AnIndexedLens i s t a b -> IndexedLens i s t a b #
cloneIndexPreservingLens :: ALens s t a b -> IndexPreservingLens s t a b #
choosing :: Functor f => LensLike f s t a b -> LensLike f s' t' a b -> LensLike f (Either s s') (Either t t') a b #
alongside :: LensLike (AlongsideLeft f b') s t a b -> LensLike (AlongsideRight f t) s' t' a' b' -> LensLike f (s, s') (t, t') (a, a') (b, b') #
(<^^=) :: (MonadState s m, Fractional a, Integral e) => LensLike' ((,) a) s a -> e -> m a #
(<<~) :: MonadState s m => ALens s s a b -> m b -> m b #
(<<^^=) :: (MonadState s m, Fractional a, Integral e) => LensLike' ((,) a) s a -> e -> m a #
(<<//~) :: Fractional a => LensLike' ((,) a) s a -> a -> s -> (a, s) #
(<<//=) :: (MonadState s m, Fractional a) => LensLike' ((,) a) s a -> a -> m a #
(<<.=) :: MonadState s m => LensLike ((,) a) s s a b -> b -> m a #
(<<%@=) :: MonadState s m => IndexedLensLike i ((,) a) s s a b -> (i -> a -> b) -> m a #
(<<%=) :: (Strong p, MonadState s m) => Over p ((,) a) s s a b -> p a b -> m a #
(<//~) :: Fractional a => LensLike ((,) a) s t a a -> a -> s -> (a, t) #
(<//=) :: (MonadState s m, Fractional a) => LensLike' ((,) a) s a -> a -> m a #
(<%@=) :: MonadState s m => IndexedLensLike i ((,) b) s s a b -> (i -> a -> b) -> m b #
(<%=) :: MonadState s m => LensLike ((,) b) s s a b -> (a -> b) -> m b #
(<#=) :: MonadState s m => ALens s s a b -> b -> m b #
(<#%=) :: MonadState s m => ALens s s a b -> (a -> b) -> m b #
(%%@~) :: IndexedLensLike i f s t a b -> (i -> a -> f b) -> s -> f t #
(%%@=) :: MonadState s m => IndexedLensLike i ((,) r) s s a b -> (i -> a -> (r, b)) -> m r #
(%%=) :: MonadState s m => Over p ((,) r) s s a b -> p a (r, b) -> m r #
(#=) :: MonadState s m => ALens s s a b -> b -> m () #
(#%=) :: MonadState s m => ALens s s a b -> (a -> b) -> m () #
(#%%=) :: MonadState s m => ALens s s a b -> (a -> (r, b)) -> m r #
uncurried :: (Profunctor p, Functor f) => p ((a, b) -> c) (f ((d, e) -> f)) -> p (a -> b -> c) (f (d -> e -> f)) #
rmapping :: (Profunctor p, Profunctor q) => AnIso s t a b -> Iso (p x s) (q y t) (p x a) (q y b) #
lmapping :: (Profunctor p, Profunctor q) => AnIso s t a b -> Iso (p a x) (q b y) (p s x) (q t y) #
flipped :: (Profunctor p, Functor f) => p (b -> a -> c) (f (b' -> a' -> c')) -> p (a -> b -> c) (f (a' -> b' -> c')) #
dimapping :: (Profunctor p, Profunctor q) => AnIso s t a b -> AnIso s' t' a' b' -> Iso (p a s') (q b t') (p s a') (q t b') #
curried :: (Profunctor p, Functor f) => p (a -> b -> c) (f (d -> e -> f)) -> p ((a, b) -> c) (f ((d, e) -> f)) #
contramapping :: Contravariant f => AnIso s t a b -> Iso (f a) (f b) (f s) (f t) #
bimapping :: (Bifunctor f, Bifunctor g) => AnIso s t a b -> AnIso s' t' a' b' -> Iso (f s s') (g t t') (f a a') (g b b') #
retagged :: (Profunctor p, Bifunctor p) => p a b -> p s b #
makePrisms :: Name -> DecsQ #
makeClassyPrisms :: Name -> DecsQ #
indexing64 :: Indexable Int64 p => ((a -> Indexing64 f b) -> s -> Indexing64 f t) -> p a (f b) -> s -> f t #
indexing :: Indexable Int p => ((a -> Indexing f b) -> s -> Indexing f t) -> p a (f b) -> s -> f t #
itraverse_ :: (FoldableWithIndex i t, Applicative f) => (i -> a -> f b) -> t a -> f () #
itraverseByOf :: IndexedTraversal i s t a b -> (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (i -> a -> f b) -> s -> f t #
itraverseBy :: TraversableWithIndex i t => (forall x. x -> f x) -> (forall x y. f (x -> y) -> f x -> f y) -> (i -> a -> f b) -> t a -> f (t b) #
itoList :: FoldableWithIndex i f => f a -> [(i, a)] #
inone :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Bool #
imapM_ :: (FoldableWithIndex i t, Monad m) => (i -> a -> m b) -> t a -> m () #
imapM :: (TraversableWithIndex i t, Monad m) => (i -> a -> m b) -> t a -> m (t b) #
imapAccumR :: TraversableWithIndex i t => (i -> s -> a -> (s, b)) -> s -> t a -> (s, t b) #
imapAccumL :: TraversableWithIndex i t => (i -> s -> a -> (s, b)) -> s -> t a -> (s, t b) #
ifor_ :: (FoldableWithIndex i t, Applicative f) => t a -> (i -> a -> f b) -> f () #
iforM_ :: (FoldableWithIndex i t, Monad m) => t a -> (i -> a -> m b) -> m () #
iforM :: (TraversableWithIndex i t, Monad m) => t a -> (i -> a -> m b) -> m (t b) #
ifor :: (TraversableWithIndex i t, Applicative f) => t a -> (i -> a -> f b) -> f (t b) #
ifoldrM :: (FoldableWithIndex i f, Monad m) => (i -> a -> b -> m b) -> b -> f a -> m b #
ifoldlM :: (FoldableWithIndex i f, Monad m) => (i -> b -> a -> m b) -> b -> f a -> m b #
ifoldMapByOf :: IndexedFold i t a -> (r -> r -> r) -> r -> (i -> a -> r) -> t -> r #
ifoldMapBy :: FoldableWithIndex i t => (r -> r -> r) -> r -> (i -> a -> r) -> t a -> r #
ifind :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Maybe (i, a) #
iconcatMap :: FoldableWithIndex i f => (i -> a -> [b]) -> f a -> [b] #
icompose :: Indexable p c => (i -> j -> p) -> (Indexed i s t -> r) -> (Indexed j a b -> s -> t) -> c a b -> r #
iany :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Bool #
iall :: FoldableWithIndex i f => (i -> a -> Bool) -> f a -> Bool #
view :: MonadReader s m => Getting a s a -> m a #
use :: MonadState s m => Getting a s a -> m a #
to :: (Profunctor p, Contravariant f) => (s -> a) -> Optic' p f s a #
listenings :: MonadWriter w m => Getting v w u -> (u -> v) -> m a -> m (a, v) #
listening :: MonadWriter w m => Getting u w u -> m a -> m (a, u) #
like :: (Profunctor p, Contravariant f, Functor f) => a -> Optic' p f s a #
iviews :: MonadReader s m => IndexedGetting i r s a -> (i -> a -> r) -> m r #
iview :: MonadReader s m => IndexedGetting i (i, a) s a -> m (i, a) #
iuses :: MonadState s m => IndexedGetting i r s a -> (i -> a -> r) -> m r #
iuse :: MonadState s m => IndexedGetting i (i, a) s a -> m (i, a) #
ito :: (Indexable i p, Contravariant f) => (s -> (i, a)) -> Over' p f s a #
ilistenings :: MonadWriter w m => IndexedGetting i v w u -> (i -> u -> v) -> m a -> m (a, v) #
ilistening :: MonadWriter w m => IndexedGetting i (i, u) w u -> m a -> m (a, (i, u)) #
getting :: (Profunctor p, Profunctor q, Functor f, Contravariant f) => Optical p q f s t a b -> Optical' p q f s a #
(^@.) :: s -> IndexedGetting i (i, a) s a -> (i, a) #
worded :: Applicative f => IndexedLensLike' Int f String String #
traverseOf_ :: Functor f => Getting (Traversed r f) s a -> (a -> f r) -> s -> f () #
traverse1Of_ :: Functor f => Getting (TraversedF r f) s a -> (a -> f r) -> s -> f () #
toNonEmptyOf :: Getting (NonEmptyDList a) s a -> s -> NonEmpty a #
takingWhile :: (Conjoined p, Applicative f) => (a -> Bool) -> Over p (TakingWhile p f a a) s t a a -> Over p f s t a a #
sequenceOf_ :: Monad m => Getting (Sequenced a m) s (m a) -> s -> m () #
sequenceAOf_ :: Functor f => Getting (Traversed a f) s (f a) -> s -> f () #
sequence1Of_ :: Functor f => Getting (TraversedF a f) s (f a) -> s -> f () #
replicated :: Int -> Fold a a #
minimum1Of :: Ord a => Getting (Min a) s a -> s -> a #
maximum1Of :: Ord a => Getting (Max a) s a -> s -> a #
lined :: Applicative f => IndexedLensLike' Int f String String #
itraverseOf_ :: Functor f => IndexedGetting i (Traversed r f) s a -> (i -> a -> f r) -> s -> f () #
itoListOf :: IndexedGetting i (Endo [(i, a)]) s a -> s -> [(i, a)] #
itakingWhile :: (Indexable i p, Profunctor q, Contravariant f, Applicative f) => (i -> a -> Bool) -> Optical' (Indexed i) q (Const (Endo (f s)) :: * -> *) s a -> Optical' p q f s a #
ipreviews :: MonadReader s m => IndexedGetting i (First r) s a -> (i -> a -> r) -> m (Maybe r) #
ipreview :: MonadReader s m => IndexedGetting i (First (i, a)) s a -> m (Maybe (i, a)) #
ipreuses :: MonadState s m => IndexedGetting i (First r) s a -> (i -> a -> r) -> m (Maybe r) #
ipreuse :: MonadState s m => IndexedGetting i (First (i, a)) s a -> m (Maybe (i, a)) #
ipre :: IndexedGetting i (First (i, a)) s a -> IndexPreservingGetter s (Maybe (i, a)) #
imapMOf_ :: Monad m => IndexedGetting i (Sequenced r m) s a -> (i -> a -> m r) -> s -> m () #
iforOf_ :: Functor f => IndexedGetting i (Traversed r f) s a -> s -> (i -> a -> f r) -> f () #
iforMOf_ :: Monad m => IndexedGetting i (Sequenced r m) s a -> s -> (i -> a -> m r) -> m () #
ifoldring :: (Indexable i p, Contravariant f, Applicative f) => ((i -> a -> f a -> f a) -> f a -> s -> f a) -> Over p f s t a b #
ifoldrOf' :: IndexedGetting i (Dual (Endo (r -> r))) s a -> (i -> a -> r -> r) -> r -> s -> r #
ifoldrOf :: IndexedGetting i (Endo r) s a -> (i -> a -> r -> r) -> r -> s -> r #
ifoldrMOf :: Monad m => IndexedGetting i (Dual (Endo (r -> m r))) s a -> (i -> a -> r -> m r) -> r -> s -> m r #
ifoldlOf' :: IndexedGetting i (Endo (r -> r)) s a -> (i -> r -> a -> r) -> r -> s -> r #
ifoldlOf :: IndexedGetting i (Dual (Endo r)) s a -> (i -> r -> a -> r) -> r -> s -> r #
ifoldlMOf :: Monad m => IndexedGetting i (Endo (r -> m r)) s a -> (i -> r -> a -> m r) -> r -> s -> m r #
ifolding :: (Foldable f, Indexable i p, Contravariant g, Applicative g) => (s -> f (i, a)) -> Over p g s t a b #
ifoldMapOf :: IndexedGetting i m s a -> (i -> a -> m) -> s -> m #
ifindMOf :: Monad m => IndexedGetting i (Endo (m (Maybe a))) s a -> (i -> a -> m Bool) -> s -> m (Maybe a) #
idroppingWhile :: (Indexable i p, Profunctor q, Applicative f) => (i -> a -> Bool) -> Optical (Indexed i) q (Compose (State Bool) f) s t a a -> Optical p q f s t a a #
iconcatMapOf :: IndexedGetting i [r] s a -> (i -> a -> [r]) -> s -> [r] #
foldring :: (Contravariant f, Applicative f) => ((a -> f a -> f a) -> f a -> s -> f a) -> LensLike f s t a b #
foldr1Of' :: HasCallStack => Getting (Dual (Endo (Endo (Maybe a)))) s a -> (a -> a -> a) -> s -> a #
folded64 :: Foldable f => IndexedFold Int64 (f a) a #
folded :: Foldable f => IndexedFold Int (f a) a #
foldMapByOf :: Fold s a -> (r -> r -> r) -> r -> (a -> r) -> s -> r #
findIndicesOf :: IndexedGetting i (Endo [i]) s a -> (a -> Bool) -> s -> [i] #
findIndexOf :: IndexedGetting i (First i) s a -> (a -> Bool) -> s -> Maybe i #
elemIndicesOf :: Eq a => IndexedGetting i (Endo [i]) s a -> a -> s -> [i] #
elemIndexOf :: Eq a => IndexedGetting i (First i) s a -> a -> s -> Maybe i #
droppingWhile :: (Conjoined p, Profunctor q, Applicative f) => (a -> Bool) -> Optical p q (Compose (State Bool) f) s t a a -> Optical p q f s t a a #
concatMapOf :: Getting [r] s a -> (a -> [r]) -> s -> [r] #
backwards :: (Profunctor p, Profunctor q) => Optical p q (Backwards f) s t a b -> Optical p q f s t a b #
asumOf :: Alternative f => Getting (Endo (f a)) s (f a) -> s -> f a #
(^@?!) :: HasCallStack => s -> IndexedGetting i (Endo (i, a)) s a -> (i, a) #
(^@..) :: s -> IndexedGetting i (Endo [(i, a)]) s a -> [(i, a)] #
(^?!) :: HasCallStack => s -> Getting (Endo a) s a -> a #
substEq :: AnEquality s t a b -> ((s ~ a) -> (t ~ b) -> r) -> r #
runEq :: AnEquality s t a b -> Identical s t a b #
mapEq :: AnEquality s t a b -> f s -> f a #
fromEq :: AnEquality s t a b -> Equality b a t s #
_tail :: Cons s s a a => Traversal' s s #
_last :: Snoc s s a a => Traversal' s a #
_init :: Snoc s s a a => Traversal' s s #
_head :: Cons s s a a => Traversal' s a #
A class for types with a default value.
Instances
antiquewhite :: (Ord a, Floating a) => Colour a #
aquamarine :: (Ord a, Floating a) => Colour a #
blanchedalmond :: (Ord a, Floating a) => Colour a #
blueviolet :: (Ord a, Floating a) => Colour a #
chartreuse :: (Ord a, Floating a) => Colour a #
cornflowerblue :: (Ord a, Floating a) => Colour a #
darkgoldenrod :: (Ord a, Floating a) => Colour a #
darkmagenta :: (Ord a, Floating a) => Colour a #
darkolivegreen :: (Ord a, Floating a) => Colour a #
darkorange :: (Ord a, Floating a) => Colour a #
darkorchid :: (Ord a, Floating a) => Colour a #
darksalmon :: (Ord a, Floating a) => Colour a #
darkseagreen :: (Ord a, Floating a) => Colour a #
darkslateblue :: (Ord a, Floating a) => Colour a #
darkslategray :: (Ord a, Floating a) => Colour a #
darkslategrey :: (Ord a, Floating a) => Colour a #
darkturquoise :: (Ord a, Floating a) => Colour a #
darkviolet :: (Ord a, Floating a) => Colour a #
deepskyblue :: (Ord a, Floating a) => Colour a #
dodgerblue :: (Ord a, Floating a) => Colour a #
floralwhite :: (Ord a, Floating a) => Colour a #
forestgreen :: (Ord a, Floating a) => Colour a #
ghostwhite :: (Ord a, Floating a) => Colour a #
greenyellow :: (Ord a, Floating a) => Colour a #
lavenderblush :: (Ord a, Floating a) => Colour a #
lemonchiffon :: (Ord a, Floating a) => Colour a #
lightcoral :: (Ord a, Floating a) => Colour a #
lightgoldenrodyellow :: (Ord a, Floating a) => Colour a #
lightgreen :: (Ord a, Floating a) => Colour a #
lightsalmon :: (Ord a, Floating a) => Colour a #
lightseagreen :: (Ord a, Floating a) => Colour a #
lightskyblue :: (Ord a, Floating a) => Colour a #
lightslategray :: (Ord a, Floating a) => Colour a #
lightslategrey :: (Ord a, Floating a) => Colour a #
lightsteelblue :: (Ord a, Floating a) => Colour a #
lightyellow :: (Ord a, Floating a) => Colour a #
mediumaquamarine :: (Ord a, Floating a) => Colour a #
mediumblue :: (Ord a, Floating a) => Colour a #
mediumorchid :: (Ord a, Floating a) => Colour a #
mediumpurple :: (Ord a, Floating a) => Colour a #
mediumseagreen :: (Ord a, Floating a) => Colour a #
mediumslateblue :: (Ord a, Floating a) => Colour a #
mediumspringgreen :: (Ord a, Floating a) => Colour a #
mediumturquoise :: (Ord a, Floating a) => Colour a #
mediumvioletred :: (Ord a, Floating a) => Colour a #
midnightblue :: (Ord a, Floating a) => Colour a #
navajowhite :: (Ord a, Floating a) => Colour a #
palegoldenrod :: (Ord a, Floating a) => Colour a #
paleturquoise :: (Ord a, Floating a) => Colour a #
palevioletred :: (Ord a, Floating a) => Colour a #
papayawhip :: (Ord a, Floating a) => Colour a #
powderblue :: (Ord a, Floating a) => Colour a #
saddlebrown :: (Ord a, Floating a) => Colour a #
sandybrown :: (Ord a, Floating a) => Colour a #
springgreen :: (Ord a, Floating a) => Colour a #
whitesmoke :: (Ord a, Floating a) => Colour a #
yellowgreen :: (Ord a, Floating a) => Colour a #
newtype Const a (b :: k) :: forall k. * -> k -> * #
The Const functor.
Instances
| Generic1 (Const a :: k -> *) | |
| Bifunctor (Const :: * -> * -> *) | Since: base-4.8.0.0 |
| Bitraversable (Const :: * -> * -> *) | Since: base-4.10.0.0 |
Defined in Data.Bitraversable Methods bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> Const a b -> f (Const c d) # | |
| Bifoldable (Const :: * -> * -> *) | Since: base-4.10.0.0 |
| Eq2 (Const :: * -> * -> *) | Since: base-4.9.0.0 |
| Ord2 (Const :: * -> * -> *) | Since: base-4.9.0.0 |
Defined in Data.Functor.Classes | |
| Read2 (Const :: * -> * -> *) | Since: base-4.9.0.0 |
Defined in Data.Functor.Classes Methods liftReadsPrec2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> Int -> ReadS (Const a b) # liftReadList2 :: (Int -> ReadS a) -> ReadS [a] -> (Int -> ReadS b) -> ReadS [b] -> ReadS [Const a b] # liftReadPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec (Const a b) # liftReadListPrec2 :: ReadPrec a -> ReadPrec [a] -> ReadPrec b -> ReadPrec [b] -> ReadPrec [Const a b] # | |
| Show2 (Const :: * -> * -> *) | Since: base-4.9.0.0 |
| NFData2 (Const :: * -> * -> *) | Since: deepseq-1.4.3.0 |
Defined in Control.DeepSeq | |
| Biapplicative (Const :: * -> * -> *) | |
| Hashable2 (Const :: * -> * -> *) | |
Defined in Data.Hashable.Class | |
| Bitraversable1 (Const :: * -> * -> *) | |
Defined in Data.Semigroup.Traversable.Class Methods bitraverse1 :: Apply f => (a -> f b) -> (c -> f d) -> Const a c -> f (Const b d) bisequence1 :: Apply f => Const (f a) (f b) -> f (Const a b) | |
| Biapply (Const :: * -> * -> *) | |
| Functor (Const m :: * -> *) | Since: base-2.1 |
| Monoid m => Applicative (Const m :: * -> *) | Since: base-2.0.1 |
| Foldable (Const m :: * -> *) | Since: base-4.7.0.0 |
Defined in Data.Functor.Const Methods fold :: Monoid m0 => Const m m0 -> m0 # foldMap :: Monoid m0 => (a -> m0) -> Const m a -> m0 # foldr :: (a -> b -> b) -> b -> Const m a -> b # foldr' :: (a -> b -> b) -> b -> Const m a -> b # foldl :: (b -> a -> b) -> b -> Const m a -> b # foldl' :: (b -> a -> b) -> b -> Const m a -> b # foldr1 :: (a -> a -> a) -> Const m a -> a # foldl1 :: (a -> a -> a) -> Const m a -> a # elem :: Eq a => a -> Const m a -> Bool # maximum :: Ord a => Const m a -> a # minimum :: Ord a => Const m a -> a # | |
| Traversable (Const m :: * -> *) | Since: base-4.7.0.0 |
| Contravariant (Const a :: * -> *) | |
| Eq a => Eq1 (Const a :: * -> *) | Since: base-4.9.0.0 |
| Ord a => Ord1 (Const a :: * -> *) | Since: base-4.9.0.0 |
Defined in Data.Functor.Classes | |
| Read a => Read1 (Const a :: * -> *) | Since: base-4.9.0.0 |
Defined in Data.Functor.Classes Methods liftReadsPrec :: (Int -> ReadS a0) -> ReadS [a0] -> Int -> ReadS (Const a a0) # liftReadList :: (Int -> ReadS a0) -> ReadS [a0] -> ReadS [Const a a0] # liftReadPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec (Const a a0) # liftReadListPrec :: ReadPrec a0 -> ReadPrec [a0] -> ReadPrec [Const a a0] # | |
| Show a => Show1 (Const a :: * -> *) | Since: base-4.9.0.0 |
| NFData a => NFData1 (Const a :: * -> *) | Since: deepseq-1.4.3.0 |
Defined in Control.DeepSeq | |
| Hashable a => Hashable1 (Const a :: * -> *) | |
Defined in Data.Hashable.Class | |
| Semigroup m => Apply (Const m :: * -> *) | |
| Bounded a => Bounded (Const a b) | |
| Enum a => Enum (Const a b) | |
Defined in Data.Functor.Const Methods succ :: Const a b -> Const a b # pred :: Const a b -> Const a b # fromEnum :: Const a b -> Int # enumFrom :: Const a b -> [Const a b] # enumFromThen :: Const a b -> Const a b -> [Const a b] # enumFromTo :: Const a b -> Const a b -> [Const a b] # enumFromThenTo :: Const a b -> Const a b -> Const a b -> [Const a b] # | |
| Eq a => Eq (Const a b) | |
| Floating a => Floating (Const a b) | |
Defined in Data.Functor.Const Methods exp :: Const a b -> Const a b # log :: Const a b -> Const a b # sqrt :: Const a b -> Const a b # (**) :: Const a b -> Const a b -> Const a b # logBase :: Const a b -> Const a b -> Const a b # sin :: Const a b -> Const a b # cos :: Const a b -> Const a b # tan :: Const a b -> Const a b # asin :: Const a b -> Const a b # acos :: Const a b -> Const a b # atan :: Const a b -> Const a b # sinh :: Const a b -> Const a b # cosh :: Const a b -> Const a b # tanh :: Const a b -> Const a b # asinh :: Const a b -> Const a b # acosh :: Const a b -> Const a b # atanh :: Const a b -> Const a b # log1p :: Const a b -> Const a b # expm1 :: Const a b -> Const a b # | |
| Fractional a => Fractional (Const a b) | |
| Integral a => Integral (Const a b) | |
Defined in Data.Functor.Const Methods quot :: Const a b -> Const a b -> Const a b # rem :: Const a b -> Const a b -> Const a b # div :: Const a b -> Const a b -> Const a b # mod :: Const a b -> Const a b -> Const a b # quotRem :: Const a b -> Const a b -> (Const a b, Const a b) # divMod :: Const a b -> Const a b -> (Const a b, Const a b) # | |
| Num a => Num (Const a b) | |
Defined in Data.Functor.Const | |
| Ord a => Ord (Const a b) | |
| Read a => Read (Const a b) | This instance would be equivalent to the derived instances of the
Since: base-4.8.0.0 |
| Real a => Real (Const a b) | |
Defined in Data.Functor.Const Methods toRational :: Const a b -> Rational # | |
| RealFloat a => RealFloat (Const a b) | |
Defined in Data.Functor.Const Methods floatRadix :: Const a b -> Integer # floatDigits :: Const a b -> Int # floatRange :: Const a b -> (Int, Int) # decodeFloat :: Const a b -> (Integer, Int) # encodeFloat :: Integer -> Int -> Const a b # exponent :: Const a b -> Int # significand :: Const a b -> Const a b # scaleFloat :: Int -> Const a b -> Const a b # isInfinite :: Const a b -> Bool # isDenormalized :: Const a b -> Bool # isNegativeZero :: Const a b -> Bool # | |
| RealFrac a => RealFrac (Const a b) | |
| Show a => Show (Const a b) | This instance would be equivalent to the derived instances of the
Since: base-4.8.0.0 |
| Ix a => Ix (Const a b) | |
Defined in Data.Functor.Const Methods range :: (Const a b, Const a b) -> [Const a b] # index :: (Const a b, Const a b) -> Const a b -> Int # unsafeIndex :: (Const a b, Const a b) -> Const a b -> Int inRange :: (Const a b, Const a b) -> Const a b -> Bool # rangeSize :: (Const a b, Const a b) -> Int # unsafeRangeSize :: (Const a b, Const a b) -> Int | |
| IsString a => IsString (Const a b) | Since: base-4.9.0.0 |
Defined in Data.String Methods fromString :: String -> Const a b # | |
| Generic (Const a b) | |
| Semigroup a => Semigroup (Const a b) | |
| Monoid a => Monoid (Const a b) | |
| Wrapped (Const a x) | |
| NFData a => NFData (Const a b) | Since: deepseq-1.4.0.0 |
Defined in Control.DeepSeq | |
| Storable a => Storable (Const a b) | |
Defined in Data.Functor.Const | |
| Bits a => Bits (Const a b) | |
Defined in Data.Functor.Const Methods (.&.) :: Const a b -> Const a b -> Const a b # (.|.) :: Const a b -> Const a b -> Const a b # xor :: Const a b -> Const a b -> Const a b # complement :: Const a b -> Const a b # shift :: Const a b -> Int -> Const a b # rotate :: Const a b -> Int -> Const a b # setBit :: Const a b -> Int -> Const a b # clearBit :: Const a b -> Int -> Const a b # complementBit :: Const a b -> Int -> Const a b # testBit :: Const a b -> Int -> Bool # bitSizeMaybe :: Const a b -> Maybe Int # isSigned :: Const a b -> Bool # shiftL :: Const a b -> Int -> Const a b # unsafeShiftL :: Const a b -> Int -> Const a b # shiftR :: Const a b -> Int -> Const a b # unsafeShiftR :: Const a b -> Int -> Const a b # rotateL :: Const a b -> Int -> Const a b # | |
| FiniteBits a => FiniteBits (Const a b) | |
Defined in Data.Functor.Const Methods finiteBitSize :: Const a b -> Int # countLeadingZeros :: Const a b -> Int # countTrailingZeros :: Const a b -> Int # | |
| Hashable a => Hashable (Const a b) | |
Defined in Data.Hashable.Class | |
| t ~ Const a' x' => Rewrapped (Const a x) t | |
Defined in Control.Lens.Wrapped | |
| type Rep1 (Const a :: k -> *) | |
Defined in Data.Functor.Const | |
| type Rep (Const a b) | |
Defined in Data.Functor.Const | |
| type Unwrapped (Const a x) | |
Defined in Control.Lens.Wrapped | |
Identity functor and monad. (a non-strict monad)
Since: base-4.8.0.0
Constructors
| Identity | |
Fields
| |
Instances
class Bifunctor (p :: * -> * -> *) where #
A bifunctor is a type constructor that takes
two type arguments and is a functor in both arguments. That
is, unlike with Functor, a type constructor such as Either
does not need to be partially applied for a Bifunctor
instance, and the methods in this class permit mapping
functions over the Left value or the Right value,
or both at the same time.
Formally, the class Bifunctor represents a bifunctor
from Hask -> Hask.
Intuitively it is a bifunctor where both the first and second arguments are covariant.
You can define a Bifunctor by either defining bimap or by
defining both first and second.
If you supply bimap, you should ensure that:
bimapidid≡id
If you supply first and second, ensure:
firstid≡idsecondid≡id
If you supply both, you should also ensure:
bimapf g ≡firstf.secondg
These ensure by parametricity:
bimap(f.g) (h.i) ≡bimapf h.bimapg ifirst(f.g) ≡firstf.firstgsecond(f.g) ≡secondf.secondg
Since: base-4.8.0.0
Methods
Instances
| Bifunctor Either | Since: base-4.8.0.0 |
| Bifunctor (,) | Since: base-4.8.0.0 |
| Bifunctor Arg | Since: base-4.9.0.0 |
| Bifunctor ((,,) x1) | Since: base-4.8.0.0 |
| Bifunctor (Const :: * -> * -> *) | Since: base-4.8.0.0 |
| Bifunctor (Tagged :: * -> * -> *) | |
| Functor f => Bifunctor (AlongsideLeft f) | |
| Functor f => Bifunctor (AlongsideRight f) | |
| Bifunctor (K1 i :: * -> * -> *) | Since: base-4.9.0.0 |
| Bifunctor ((,,,) x1 x2) | Since: base-4.8.0.0 |
| Bifunctor ((,,,,) x1 x2 x3) | Since: base-4.8.0.0 |
| Functor f => Bifunctor (Clown f :: * -> * -> *) | |
| Bifunctor p => Bifunctor (Flip p) | |
| Functor g => Bifunctor (Joker g :: * -> * -> *) | |
| Bifunctor p => Bifunctor (WrappedBifunctor p) | |
| Bifunctor ((,,,,,) x1 x2 x3 x4) | Since: base-4.8.0.0 |
| (Bifunctor f, Bifunctor g) => Bifunctor (Product f g) | |
| Bifunctor ((,,,,,,) x1 x2 x3 x4 x5) | Since: base-4.8.0.0 |
| (Functor f, Bifunctor p) => Bifunctor (Tannen f p) | |
| (Bifunctor p, Functor f, Functor g) => Bifunctor (Biff p f g) | |
bars :: (PlotValue x, BarsPlotValue y) => [String] -> [(x, [y])] -> EC l (PlotBars x y) #
Construct a bar chart with the given titles and data, using the next available colors
points :: String -> [(x, y)] -> EC l (PlotPoints x y) #
Construct a scatter plot with the given title and data, using the next available color and point shape.
line :: String -> [[(x, y)]] -> EC l (PlotLines x y) #
Constuct a line plot with the given title and data, using the next available color.
setShapes :: [PointShape] -> EC l () #
Set the contents of the shape source, for subsequent plots
setColors :: [AlphaColour Double] -> EC l () #
Set the contents of the colour source, for subsequent plots
takeShape :: EC l PointShape #
Pop and return the next shape from the state
takeColor :: EC l (AlphaColour Double) #
Pop and return the next color from the state
plotRight :: ToPlot p => EC (LayoutLR x y1 y2) (p x y2) -> EC (LayoutLR x y1 y2) () #
Add a plot against the right axis tof the LayoutLR being constructed.
plotLeft :: ToPlot p => EC (LayoutLR x y1 y2) (p x y1) -> EC (LayoutLR x y1 y2) () #
Add a plot against the left axis to the LayoutLR being constructed.
plot :: ToPlot p => EC (Layout x y) (p x y) -> EC (Layout x y) () #
Add a plot to the Layout being constructed.
liftEC :: Default l1 => EC l1 a -> EC l2 l1 #
Nest the construction of a graphical element within the construction of another.
execEC :: Default l => EC l a -> l #
Run the monadic EC computation, and return the graphical
element (ie the outer monad' state)
shapes :: Lens' CState [PointShape] #
type EC l a = StateT l (State CState) a #
We use nested State monads to give nice syntax. The outer state is the graphical element being constructed (typically a layout). The inner state contains any additional state reqired. This approach means that lenses and the state monad lens operators can be used directly on the value being constructed.
The state held when monadically constructing a graphical element
Instances
| Default CState | |
Defined in Graphics.Rendering.Chart.State | |
| (Default a, ToRenderable a) => ToRenderable (EC a b) | |
Defined in Graphics.Rendering.Chart.State Methods toRenderable :: EC a b -> Renderable () # | |
layoutlr_foreground :: Settable f => (AlphaColour Double -> f (AlphaColour Double)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
Setter to update the foreground color of core chart elements on a LayoutLR
layoutlr_all_font_styles :: Settable f => (FontStyle -> f FontStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
Setter to update all the font styles on a LayoutLR
layoutlr_axes_title_styles :: Settable f => (FontStyle -> f FontStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
Setter to update all the axes title styles on a LayoutLR
layoutlr_axes_styles :: Settable f => (AxisStyle -> f AxisStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
Setter to update all axis styles on a LayoutLR
layout_foreground :: Settable f => (AlphaColour Double -> f (AlphaColour Double)) -> Layout x y -> f (Layout x y) #
Setter to update the foreground color of core chart elements on a Layout
layout_all_font_styles :: Settable f => (FontStyle -> f FontStyle) -> Layout x y -> f (Layout x y) #
Setter to update all the font styles on a Layout
layout_axes_title_styles :: Settable f => (FontStyle -> f FontStyle) -> Layout x y -> f (Layout x y) #
Setter to update all the axes title styles on a Layout
layout_axes_styles :: Settable f => (AxisStyle -> f AxisStyle) -> Layout x y -> f (Layout x y) #
Setter to update all axis styles on a Layout
slayouts_layouts :: Functor f => ([StackedLayout x1] -> f [StackedLayout x2]) -> StackedLayouts x1 -> f (StackedLayouts x2) #
slayouts_compress_legend :: Functor f => (Bool -> f Bool) -> StackedLayouts x -> f (StackedLayouts x) #
laxis_title_style :: Functor f => (FontStyle -> f FontStyle) -> LayoutAxis x -> f (LayoutAxis x) #
laxis_title :: Functor f => (String -> f String) -> LayoutAxis x -> f (LayoutAxis x) #
laxis_style :: Functor f => (AxisStyle -> f AxisStyle) -> LayoutAxis x -> f (LayoutAxis x) #
laxis_reverse :: Functor f => (Bool -> f Bool) -> LayoutAxis x -> f (LayoutAxis x) #
laxis_override :: Functor f => ((AxisData x -> AxisData x) -> f (AxisData x -> AxisData x)) -> LayoutAxis x -> f (LayoutAxis x) #
laxis_generate :: Functor f => (AxisFn x -> f (AxisFn x)) -> LayoutAxis x -> f (LayoutAxis x) #
layoutlr_x_axis :: Functor f => (LayoutAxis x -> f (LayoutAxis x)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_top_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_title_style :: Functor f => (FontStyle -> f FontStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_right_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_right_axis :: Functor f => (LayoutAxis y2 -> f (LayoutAxis y2)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_plots :: Functor f => ([Either (Plot x y1) (Plot x y2)] -> f [Either (Plot x y1) (Plot x y2)]) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_plot_background :: Functor f => (Maybe FillStyle -> f (Maybe FillStyle)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_legend :: Functor f => (Maybe LegendStyle -> f (Maybe LegendStyle)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_left_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_left_axis :: Functor f => (LayoutAxis y1 -> f (LayoutAxis y1)) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_bottom_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layoutlr_background :: Functor f => (FillStyle -> f FillStyle) -> LayoutLR x y1 y2 -> f (LayoutLR x y1 y2) #
layout_y_axis :: Functor f => (LayoutAxis y -> f (LayoutAxis y)) -> Layout x y -> f (Layout x y) #
layout_x_axis :: Functor f => (LayoutAxis x -> f (LayoutAxis x)) -> Layout x y -> f (Layout x y) #
layout_top_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> Layout x y -> f (Layout x y) #
layout_right_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> Layout x y -> f (Layout x y) #
layout_plot_background :: Functor f => (Maybe FillStyle -> f (Maybe FillStyle)) -> Layout x y -> f (Layout x y) #
layout_legend :: Functor f => (Maybe LegendStyle -> f (Maybe LegendStyle)) -> Layout x y -> f (Layout x y) #
layout_left_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> Layout x y -> f (Layout x y) #
layout_bottom_axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> Layout x y -> f (Layout x y) #
renderStackedLayouts :: Ord x => StackedLayouts x -> Renderable () #
Render several layouts with the same x-axis type and range, vertically stacked so that their origins and x-values are aligned.
The legends from all the charts may be optionally combined, and shown
once on the bottom chart. See StackedLayouts for further information.
layoutLRToGrid :: (Ord x, Ord yl, Ord yr) => LayoutLR x yl yr -> Grid (Renderable (LayoutPick x yl yr)) #
layoutLRToRenderable :: (Ord x, Ord yl, Ord yr) => LayoutLR x yl yr -> Renderable (LayoutPick x yl yr) #
Render the given LayoutLR.
layoutToGrid :: (Ord x, Ord y) => Layout x y -> Grid (Renderable (LayoutPick x y y)) #
layoutToRenderable :: (Ord x, Ord y) => Layout x y -> Renderable (LayoutPick x y y) #
Render the given Layout.
type MAxisFn t = [t] -> Maybe (AxisData t) #
A MAxisFn is a function that generates an (optional) axis
given the points plotted against that axis.
data LayoutAxis x #
Type of axis that is used in Layout and LayoutLR.
To generate the actual axis type (AxisData and AxisT)
the _laxis_generate function is called and custom settings
are applied with _laxis_override. Note that the AxisVisibility
values in Layout and LayoutLR override visibility related
settings of the axis.
Constructors
| LayoutAxis | |
Fields
| |
Instances
| PlotValue t => Default (LayoutAxis t) | |
Defined in Graphics.Rendering.Chart.Layout Methods def :: LayoutAxis t # | |
data LayoutPick x y1 y2 #
Information on what is at a specifc location of a Layout or LayoutLR.
This is delivered by the PickFn of a Renderable.
Constructors
| LayoutPick_Legend String | A legend entry. |
| LayoutPick_Title String | The title. |
| LayoutPick_XTopAxisTitle String | The title of the top x axis. |
| LayoutPick_XBottomAxisTitle String | The title of the bottom x axis. |
| LayoutPick_YLeftAxisTitle String | The title of the left y axis. |
| LayoutPick_YRightAxisTitle String | The title of the right y axis. |
| LayoutPick_PlotArea x y1 y2 | The plot area at the given plot coordinates. |
| LayoutPick_XTopAxis x | The top x axis at the given plot coordinate. |
| LayoutPick_XBottomAxis x | The bottom x axis at the given plot coordinate. |
| LayoutPick_YLeftAxis y1 | The left y axis at the given plot coordinate. |
| LayoutPick_YRightAxis y2 | The right y axis at the given plot coordinate. |
Instances
| (Show x, Show y1, Show y2) => Show (LayoutPick x y1 y2) | |
Defined in Graphics.Rendering.Chart.Layout Methods showsPrec :: Int -> LayoutPick x y1 y2 -> ShowS # show :: LayoutPick x y1 y2 -> String # showList :: [LayoutPick x y1 y2] -> ShowS # | |
A Layout value is a single plot area, with single x and y axis. The title is at the top and the legend at the bottom. It's parametrized by the types of values to be plotted on the x and y axes.
Constructors
| Layout | |
Fields
| |
Instances
| (PlotValue x, PlotValue y) => Default (Layout x y) | Empty |
Defined in Graphics.Rendering.Chart.Layout | |
| (Ord x, Ord y) => ToRenderable (Layout x y) | |
Defined in Graphics.Rendering.Chart.Layout Methods toRenderable :: Layout x y -> Renderable () # | |
A LayoutLR value is a single plot area, with an x axis and independent left and right y axes, with a title at the top; legend at the bottom. It's parametrized by the types of values to be plotted on the x and two y axes.
Constructors
| LayoutLR | |
Fields
| |
Instances
| (PlotValue x, PlotValue y1, PlotValue y2) => Default (LayoutLR x y1 y2) | Empty |
Defined in Graphics.Rendering.Chart.Layout | |
| (Ord x, Ord yl, Ord yr) => ToRenderable (LayoutLR x yl yr) | |
Defined in Graphics.Rendering.Chart.Layout Methods toRenderable :: LayoutLR x yl yr -> Renderable () # | |
data StackedLayout x where #
A layout with its y type hidden, so that it can be stacked
with other layouts with differing y axis, but the same x axis.
See StackedLayouts.
Constructors
| StackedLayout :: StackedLayout x | A |
| StackedLayoutLR :: StackedLayout x | A |
data StackedLayouts x #
A container for a set of vertically StackedLayouts.
The x axis of the different layouts will be aligned.
Constructors
| StackedLayouts | |
Fields
| |
Instances
| Default (StackedLayouts x) | A empty |
Defined in Graphics.Rendering.Chart.Layout Methods def :: StackedLayouts x # | |
| Ord x => ToRenderable (StackedLayouts x) | |
Defined in Graphics.Rendering.Chart.Layout Methods toRenderable :: StackedLayouts x -> Renderable () # | |
plot_hist_values :: Functor f => ([x] -> f [x]) -> PlotHist x y -> f (PlotHist x y) #
plot_hist_range :: Functor f => (Maybe (x, x) -> f (Maybe (x, x))) -> PlotHist x y -> f (PlotHist x y) #
plot_hist_norm_func :: Functor f => ((Double -> Int -> y1) -> f (Double -> Int -> y2)) -> PlotHist x y1 -> f (PlotHist x y2) #
plot_hist_line_style :: Functor f => (LineStyle -> f LineStyle) -> PlotHist x y -> f (PlotHist x y) #
plot_hist_fill_style :: Functor f => (FillStyle -> f FillStyle) -> PlotHist x y -> f (PlotHist x y) #
histToPlot :: (RealFrac x, Num y, Ord y) => PlotHist x y -> Plot x y #
Convert a PlotHist to a Plot
N.B. In principle this should be Chart's ToPlot class but unfortunately
this does not allow us to set bounds on the x and y axis types, hence
the need for this function.
defaultNormedPlotHist :: PlotHist x Double #
defaultPlotHist but normalized such that the integral of the
histogram is one.
defaultFloatPlotHist :: PlotHist x Double #
defaultPlotHist but with real counts
defaultPlotHist :: PlotHist x Int #
The default style is an unnormalized histogram of 20 bins.
Constructors
| PlotHist | |
Fields
| |
area_spots_4d_values :: Functor f => ([(x1, y1, z1, t1)] -> f [(x2, y2, z2, t2)]) -> AreaSpots4D z1 t1 x1 y1 -> f (AreaSpots4D z2 t2 x2 y2) #
area_spots_4d_title :: Functor f => (String -> f String) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #
area_spots_4d_palette :: Functor f => ([Colour Double] -> f [Colour Double]) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #
area_spots_4d_opacity :: Functor f => (Double -> f Double) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #
area_spots_4d_max_radius :: Functor f => (Double -> f Double) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #
area_spots_4d_linethick :: Functor f => (Double -> f Double) -> AreaSpots4D z t x y -> f (AreaSpots4D z t x y) #
area_spots_values :: Functor f => ([(x1, y1, z1)] -> f [(x2, y2, z2)]) -> AreaSpots z1 x1 y1 -> f (AreaSpots z2 x2 y2) #
area_spots_max_radius :: Functor f => (Double -> f Double) -> AreaSpots z x y -> f (AreaSpots z x y) #
area_spots_linethick :: Functor f => (Double -> f Double) -> AreaSpots z x y -> f (AreaSpots z x y) #
area_spots_linecolour :: Functor f => (AlphaColour Double -> f (AlphaColour Double)) -> AreaSpots z x y -> f (AreaSpots z x y) #
area_spots_fillcolour :: Functor f => (Colour Double -> f (Colour Double)) -> AreaSpots z x y -> f (AreaSpots z x y) #
A collection of unconnected spots, with x,y position, and an independent z value to be represented by the area of the spot.
Constructors
| AreaSpots | |
Fields
| |
data AreaSpots4D z t x y #
A collection of unconnected spots, with x,y position, an independent z value to be represented by the area of the spot, and in addition, a fourth variable t to be represented by a colour from a given palette. (A linear transfer function from t to palette is assumed.)
Constructors
| AreaSpots4D | |
Fields
| |
Instances
| (PlotValue z, PlotValue t, Show t) => ToPlot (AreaSpots4D z t) | |
Defined in Graphics.Rendering.Chart.Plot.AreaSpots Methods toPlot :: AreaSpots4D z t x y -> Plot x y # | |
| Default (AreaSpots4D z t x y) | |
Defined in Graphics.Rendering.Chart.Plot.AreaSpots Methods def :: AreaSpots4D z t x y # | |
plot_bars_values :: Functor f => ([(x1, [y])] -> f [(x2, [y])]) -> PlotBars x1 y -> f (PlotBars x2 y) #
plot_bars_style :: Functor f => (PlotBarsStyle -> f PlotBarsStyle) -> PlotBars x y -> f (PlotBars x y) #
plot_bars_spacing :: Functor f => (PlotBarsSpacing -> f PlotBarsSpacing) -> PlotBars x y -> f (PlotBars x y) #
plot_bars_singleton_width :: Functor f => (Double -> f Double) -> PlotBars x y -> f (PlotBars x y) #
plot_bars_reference :: Functor f => (y -> f y) -> PlotBars x y -> f (PlotBars x y) #
plot_bars_item_styles :: Functor f => ([(FillStyle, Maybe LineStyle)] -> f [(FillStyle, Maybe LineStyle)]) -> PlotBars x y -> f (PlotBars x y) #
plot_bars_alignment :: Functor f => (PlotBarsAlignment -> f PlotBarsAlignment) -> PlotBars x y -> f (PlotBars x y) #
plotBars :: BarsPlotValue y => PlotBars x y -> Plot x y #
class PlotValue a => BarsPlotValue a where #
Minimal complete definition
Instances
| BarsPlotValue Double | |
Defined in Graphics.Rendering.Chart.Plot.Bars | |
| BarsPlotValue Int | |
Defined in Graphics.Rendering.Chart.Plot.Bars | |
data PlotBarsStyle #
Constructors
| BarsStacked | Bars for a fixed x are stacked vertically on top of each other. |
| BarsClustered | Bars for a fixed x are put horizontally beside each other. |
Instances
| Show PlotBarsStyle | |
Defined in Graphics.Rendering.Chart.Plot.Bars Methods showsPrec :: Int -> PlotBarsStyle -> ShowS # show :: PlotBarsStyle -> String # showList :: [PlotBarsStyle] -> ShowS # | |
data PlotBarsSpacing #
Constructors
| BarsFixWidth Double | All bars have the same width in pixels. |
| BarsFixGap Double Double | (BarsFixGap g mw) means make the gaps between the bars equal to g, but with a minimum bar width of mw |
Instances
| Show PlotBarsSpacing | |
Defined in Graphics.Rendering.Chart.Plot.Bars Methods showsPrec :: Int -> PlotBarsSpacing -> ShowS # show :: PlotBarsSpacing -> String # showList :: [PlotBarsSpacing] -> ShowS # | |
data PlotBarsAlignment #
How bars for a given (x,[y]) are aligned with respect to screen coordinate corresponding to x (deviceX).
Constructors
| BarsLeft | The left edge of bars is at deviceX |
| BarsCentered | Bars are centered around deviceX |
| BarsRight | The right edge of bars is at deviceX |
Instances
| Show PlotBarsAlignment | |
Defined in Graphics.Rendering.Chart.Plot.Bars Methods showsPrec :: Int -> PlotBarsAlignment -> ShowS # show :: PlotBarsAlignment -> String # showList :: [PlotBarsAlignment] -> ShowS # | |
Value describing how to plot a set of bars. Note that the input data is typed [(x,[y])], ie for each x value we plot several y values. Typically the size of each [y] list would be the same.
Constructors
| PlotBars | |
Fields
| |
Instances
| BarsPlotValue y => Default (PlotBars x y) | |
Defined in Graphics.Rendering.Chart.Plot.Bars | |
plotVectorField :: (PlotValue x, PlotValue y) => PlotVectors x y -> Plot x y #
plot_vectors_values :: Functor f => ([((x, y), (x, y))] -> f [((x, y), (x, y))]) -> PlotVectors x y -> f (PlotVectors x y) #
plot_vectors_title :: Functor f => (String -> f String) -> PlotVectors x y -> f (PlotVectors x y) #
plot_vectors_style :: Functor f => (VectorStyle -> f VectorStyle) -> PlotVectors x y -> f (PlotVectors x y) #
plot_vectors_scale :: Functor f => (Double -> f Double) -> PlotVectors x y -> f (PlotVectors x y) #
plot_vectors_mapf :: Functor f => (((x, y) -> (x, y)) -> f ((x, y) -> (x, y))) -> PlotVectors x y -> f (PlotVectors x y) #
plot_vectors_grid :: Functor f => ([(x, y)] -> f [(x, y)]) -> PlotVectors x y -> f (PlotVectors x y) #
data PlotVectors x y #
Constructors
| PlotVectors | |
Fields
| |
Instances
| Default (PlotVectors x y) | |
Defined in Graphics.Rendering.Chart.Plot.Vectors Methods def :: PlotVectors x y # | |
data VectorStyle #
Constructors
| VectorStyle | |
Fields | |
Instances
| Default VectorStyle | |
Defined in Graphics.Rendering.Chart.Plot.Vectors Methods def :: VectorStyle # | |
scaledIntAxis :: (Integral i, PlotValue i) => LinearAxisParams i -> (i, i) -> AxisFn i #
autoScaledIntAxis :: (Integral i, PlotValue i) => LinearAxisParams i -> AxisFn i #
defaultIntAxis :: Show a => LinearAxisParams a #
loga_labelf :: (Profunctor p, Functor f) => p ([a1] -> [String]) (f ([a2] -> [String])) -> p (LogAxisParams a1) (f (LogAxisParams a2)) #
la_nTicks :: Functor f => (Int -> f Int) -> LinearAxisParams a -> f (LinearAxisParams a) #
la_nLabels :: Functor f => (Int -> f Int) -> LinearAxisParams a -> f (LinearAxisParams a) #
la_labelf :: Functor f => (([a1] -> [String]) -> f ([a2] -> [String])) -> LinearAxisParams a1 -> f (LinearAxisParams a2) #
autoScaledLogAxis :: RealFloat a => LogAxisParams a -> AxisFn a #
Generate a log axis automatically, scaled appropriate for the input data.
autoSteps :: Int -> [Double] -> [Double] #
Given a target number of values, and a list of input points, find evenly spaced values from the set {1*X, 2*X, 2.5*X, 5*X} (where X is some power of ten) that evenly cover the input points.
autoScaledAxis :: RealFloat a => LinearAxisParams a -> AxisFn a #
Generate a linear axis automatically, scaled appropriately for the input data.
scaledAxis :: RealFloat a => LinearAxisParams a -> (a, a) -> AxisFn a #
Generate a linear axis with the specified bounds
A wrapper class for doubles used to indicate they are to be plotted against a percentage axis.
Instances
| Eq Percent | |
| Floating Percent | |
| Fractional Percent | |
| Num Percent | |
| Ord Percent | |
Defined in Graphics.Rendering.Chart.Axis.Floating | |
| Real Percent | |
Defined in Graphics.Rendering.Chart.Axis.Floating Methods toRational :: Percent -> Rational # | |
| RealFloat Percent | |
Defined in Graphics.Rendering.Chart.Axis.Floating Methods floatRadix :: Percent -> Integer # floatDigits :: Percent -> Int # floatRange :: Percent -> (Int, Int) # decodeFloat :: Percent -> (Integer, Int) # encodeFloat :: Integer -> Int -> Percent # significand :: Percent -> Percent # scaleFloat :: Int -> Percent -> Percent # isInfinite :: Percent -> Bool # isDenormalized :: Percent -> Bool # isNegativeZero :: Percent -> Bool # | |
| RealFrac Percent | |
| Show Percent | |
| PlotValue Percent | |
A wrapper class for doubles used to indicate they are to be plotted against a log axis.
Instances
data LinearAxisParams a #
Constructors
| LinearAxisParams | |
Fields
| |
Instances
| (Show a, RealFloat a) => Default (LinearAxisParams a) | |
Defined in Graphics.Rendering.Chart.Axis.Floating Methods def :: LinearAxisParams a # | |
data LogAxisParams a #
Constructors
| LogAxisParams | |
Fields
| |
Instances
| (Show a, RealFloat a) => Default (LogAxisParams a) | |
Defined in Graphics.Rendering.Chart.Axis.Floating Methods def :: LogAxisParams a # | |
autoIndexAxis :: Integral i => [String] -> [i] -> AxisData i #
Create an axis for values indexed by position. The list of strings are the labels to be used.
addIndexes :: [a] -> [(PlotIndex, a)] #
Augment a list of values with index numbers for plotting.
Type for capturing values plotted by index number (ie position in a list) rather than a numerical value.
Constructors
| PlotIndex | |
Fields
| |
Instances
autoTimeValueAxis :: TimeValue t => AxisFn t #
Automatically choose a suitable time axis, based upon the time range
of data. The values to be plotted against this axis can be created
with doubleFromTimeValue.
Arguments
| :: TimeValue t | |
| => TimeSeq | Set the minor ticks, and the final range will be aligned to its elements. |
| -> TimeSeq | Set the labels and grid. |
| -> TimeLabelFn | |
| -> TimeLabelAlignment | |
| -> TimeSeq | Set the second line of labels. |
| -> TimeLabelFn | Format |
| -> TimeLabelAlignment | |
| -> AxisFn t |
A typeclass abstracting the functions we need
to be able to plot against an axis of time type d.
Minimal complete definition
Methods
utctimeFromTV :: t -> UTCTime #
tvFromUTCTime :: UTCTime -> t #
doubleFromTimeValue :: t -> Double #
timeValueFromDouble :: Double -> t #
Instances
| TimeValue LocalTime | |
Defined in Graphics.Rendering.Chart.Axis.Time Methods utctimeFromTV :: LocalTime -> UTCTime # tvFromUTCTime :: UTCTime -> LocalTime # doubleFromTimeValue :: LocalTime -> Double # timeValueFromDouble :: Double -> LocalTime # | |
| TimeValue UTCTime | |
Defined in Graphics.Rendering.Chart.Axis.Time Methods utctimeFromTV :: UTCTime -> UTCTime # tvFromUTCTime :: UTCTime -> UTCTime # doubleFromTimeValue :: UTCTime -> Double # timeValueFromDouble :: Double -> UTCTime # | |
| TimeValue Day | |
Defined in Graphics.Rendering.Chart.Axis.Time Methods utctimeFromTV :: Day -> UTCTime # tvFromUTCTime :: UTCTime -> Day # doubleFromTimeValue :: Day -> Double # timeValueFromDouble :: Double -> Day # | |
type TimeSeq = UTCTime -> ([UTCTime], [UTCTime]) #
TimeSeq is a (potentially infinite) set of times. When passed a reference time, the function returns a a pair of lists. The first contains all times in the set less than the reference time in decreasing order. The second contains all times in the set greater than or equal to the reference time, in increasing order.
type TimeLabelFn = UTCTime -> String #
How to display a time
data TimeLabelAlignment #
Constructors
| UnderTicks | |
| BetweenTicks |
Instances
| Show TimeLabelAlignment | |
Defined in Graphics.Rendering.Chart.Axis.Time Methods showsPrec :: Int -> TimeLabelAlignment -> ShowS # show :: TimeLabelAlignment -> String # showList :: [TimeLabelAlignment] -> ShowS # | |
axis_visibility :: Functor f => (AxisVisibility -> f AxisVisibility) -> AxisData x -> f (AxisData x) #
axis_viewport :: Functor f => ((Range -> x -> Double) -> f (Range -> x -> Double)) -> AxisData x -> f (AxisData x) #
axis_tropweiv :: Functor f => ((Range -> Double -> x) -> f (Range -> Double -> x)) -> AxisData x -> f (AxisData x) #
axis_labels :: Functor f => ([[(x, String)]] -> f [[(x, String)]]) -> AxisData x -> f (AxisData x) #
invLinMap :: (Double -> a) -> (a -> Double) -> (a, a) -> Range -> Double -> a #
An inverse linear mapping of points from one range to another.
linMap :: (a -> Double) -> (a, a) -> Range -> a -> Double #
A linear mapping of points in one range to another.
invmap :: PlotValue x => (x, x) -> Range -> Double -> x #
The inverse mapping from device co-ordinate range back to interesting values.
vmap :: PlotValue x => (x, x) -> Range -> x -> Double #
A linear mapping of points in one range to another.
defaultGridLineStyle :: LineStyle #
The default LineStyle of a plot area grid.
defaultAxisLineStyle :: LineStyle #
The default LineStyle of an axis.
makeAxis' :: Ord x => (x -> Double) -> (Double -> x) -> ([x] -> [String]) -> ([x], [x], [x]) -> AxisData x #
Construct an axis given the positions for ticks, grid lines, and labels, and the positioning and labelling functions
makeAxis :: PlotValue x => ([x] -> [String]) -> ([x], [x], [x]) -> AxisData x #
Construct an axis given the positions for ticks, grid lines, and labels, and the labelling function
renderAxisGrid :: RectSize -> AxisT z -> BackendProgram () #
axisOverhang :: Ord x => AxisT x -> BackendProgram (Double, Double) #
Calculate the amount by which the labels extend beyond the ends of the axis.
axisLabelsOverride :: [(x, String)] -> AxisData x -> AxisData x #
Modifier to change labels on an axis
axisGridAtLabels :: AxisData x -> AxisData x #
Modifier to position grid lines to line up with the labels
axisGridAtBigTicks :: AxisData x -> AxisData x #
Modifier to position grid lines to line up with only the major ticks
axisGridAtTicks :: AxisData x -> AxisData x #
Modifier to position grid lines to line up with the ticks
axisGridHide :: AxisData x -> AxisData x #
Modifier to remove grid lines from an axis
axisToRenderable :: AxisT x -> Renderable x #
Construct a renderable from an axis, in order that
it can be composed with other renderables and drawn. This
does not include the drawing of the grid, which must be done
separately by the renderAxisGrid function.
class Ord a => PlotValue a where #
A typeclass abstracting the functions we need to be able to plot against an axis of type a
data AxisVisibility #
Configures whick visual elements of a axis are shown at the appropriate edge of a plot area.
Constructors
| AxisVisibility | |
Fields
| |
Instances
| Default AxisVisibility | By default all parts of a axis are visible. |
Defined in Graphics.Rendering.Chart.Axis.Types Methods def :: AxisVisibility # | |
The basic data associated with an axis showing values of type x.
Constructors
| AxisData | |
Fields
| |
_axis_line_style :: AxisStyle -> LineStyle #
LineStyle to use for axis line and ticks.
_axis_label_style :: AxisStyle -> FontStyle #
FontStyle to use for axis labels.
_axis_grid_style :: AxisStyle -> LineStyle #
LineStyle to use for axis grid.
_axis_label_gap :: AxisStyle -> Double #
How far the labels are to be drawn from the axis.
type AxisFn x = [x] -> AxisData x #
A function to generate the axis data, given the data values to be plotted against it.
Collect the information we need to render an axis. The bool is true if the axis direction is reversed.
legendToRenderable :: Legend x y -> Renderable String #
data LegendStyle #
Constructors
| LegendStyle | |
Instances
| Default LegendStyle | |
Defined in Graphics.Rendering.Chart.Legend Methods def :: LegendStyle # | |
data LegendOrientation #
Legends can be constructed in two orientations: in rows (where we specify the maximum number of columns), and in columns (where we specify the maximum number of rows)
data LegendPosition #
Defines the position of the legend, relative to the plot.
Constructors
| LegendAbove | |
| LegendBelow | |
| LegendRight | |
| LegendLeft |
pieToRenderable :: PieLayout -> Renderable (PickFn a) #
pieChartToRenderable :: PieChart -> Renderable (PickFn a) #
Constructors
| PieLayout | |
Fields | |
Instances
| Default PieLayout | |
Defined in Graphics.Rendering.Chart.Plot.Pie | |
| ToRenderable PieLayout | |
Defined in Graphics.Rendering.Chart.Plot.Pie Methods toRenderable :: PieLayout -> Renderable () # | |
Constructors
| PieChart | |
Fields | |
Instances
| Default PieChart | |
Defined in Graphics.Rendering.Chart.Plot.Pie | |
| ToRenderable PieChart | |
Defined in Graphics.Rendering.Chart.Plot.Pie Methods toRenderable :: PieChart -> Renderable () # | |
Constructors
| PieItem | |
Fields
| |
plot_annotation_vanchor :: Functor f => (VTextAnchor -> f VTextAnchor) -> PlotAnnotation x y -> f (PlotAnnotation x y) #
plot_annotation_values :: Functor f => ([(x1, y1, String)] -> f [(x2, y2, String)]) -> PlotAnnotation x1 y1 -> f (PlotAnnotation x2 y2) #
plot_annotation_style :: Functor f => (FontStyle -> f FontStyle) -> PlotAnnotation x y -> f (PlotAnnotation x y) #
plot_annotation_hanchor :: Functor f => (HTextAnchor -> f HTextAnchor) -> PlotAnnotation x y -> f (PlotAnnotation x y) #
plot_annotation_background :: Functor f => (Rectangle -> f Rectangle) -> PlotAnnotation x y -> f (PlotAnnotation x y) #
plot_annotation_angle :: Functor f => (Double -> f Double) -> PlotAnnotation x y -> f (PlotAnnotation x y) #
data PlotAnnotation x y #
Value for describing a series of text annotations to be placed at arbitrary points on the graph. Annotations can be rotated and styled.
Constructors
| PlotAnnotation | |
Fields
| |
Instances
| ToPlot PlotAnnotation | |
Defined in Graphics.Rendering.Chart.Plot.Annotation Methods toPlot :: PlotAnnotation x y -> Plot x y # | |
| Default (PlotAnnotation x y) | |
Defined in Graphics.Rendering.Chart.Plot.Annotation Methods def :: PlotAnnotation x y # | |
drawRectangle :: Point -> Rectangle -> BackendProgram (PickFn a) #
Draw the specified rectangle such that its top-left vertex is placed at the given position
rectangleToRenderable :: Rectangle -> Renderable a #
rlabel :: FontStyle -> HTextAnchor -> VTextAnchor -> Double -> String -> Renderable String #
Construct a renderable from a text string, rotated wrt to axes. The angle of rotation is in degrees, measured clockwise from the horizontal.
label :: FontStyle -> HTextAnchor -> VTextAnchor -> String -> Renderable String #
Construct a renderable from a text string, aligned with the axes.
embedRenderable :: BackendProgram (Renderable a) -> Renderable a #
Helper function for using a renderable, when we generate it in the BackendProgram monad.
fillBackground :: FillStyle -> Renderable a -> Renderable a #
Overlay a renderable over a solid background fill.
Arguments
| :: (Double, Double, Double, Double) | The spacing to be added. |
| -> Renderable a | The source renderable. |
| -> Renderable a |
Add some spacing at the edges of a renderable.
mapPickFn :: (a -> b) -> Renderable a -> Renderable b #
Map a function over result of a renderable's pickfunction.
mapMaybePickFn :: (a -> Maybe b) -> Renderable a -> Renderable b #
Map a function over the result of a renderable's pickfunction, keeping only Just results.
setPickFn :: PickFn b -> Renderable a -> Renderable b #
Replace the pick function of a renderable with another.
spacer1 :: Renderable a -> Renderable b #
Create a blank renderable with a minimum size the same as some other renderable.
spacer :: RectSize -> Renderable a #
Create a blank renderable with a specified minimum size.
emptyRenderable :: Renderable a #
nullPickFn :: PickFn a #
type PickFn a = Point -> Maybe a #
A function that maps a point in device coordinates to some value.
Perhaps it might be generalised from Maybe a to (MonadPlus m ) => m a in the future.
data Renderable a #
A Renderable is a record of functions required to layout a graphic element.
Constructors
| Renderable | |
Fields
| |
Instances
| Functor Renderable | |
Defined in Graphics.Rendering.Chart.Renderable Methods fmap :: (a -> b) -> Renderable a -> Renderable b # (<$) :: a -> Renderable b -> Renderable a # | |
| ToRenderable (Renderable a) | |
Defined in Graphics.Rendering.Chart.Renderable Methods toRenderable :: Renderable a -> Renderable () # | |
| ToPNG (Renderable a) # | |
Defined in Language.Stochaskell.Plot Methods toPNG :: String -> Renderable a -> IO () # | |
class ToRenderable a where #
A type class abtracting the conversion of a value to a Renderable.
Minimal complete definition
Methods
toRenderable :: a -> Renderable () #
Instances
data RectCornerStyle #
Constructors
| RCornerSquare | |
| RCornerBevel Double | |
| RCornerRounded Double |
Constructors
| Rectangle | |
Instances
| Default Rectangle | |
Defined in Graphics.Rendering.Chart.Renderable | |
| ToRenderable Rectangle | |
Defined in Graphics.Rendering.Chart.Renderable Methods toRenderable :: Rectangle -> Renderable () # | |
plot_candle_width :: Functor f => (Double -> f Double) -> PlotCandle x y -> f (PlotCandle x y) #
plot_candle_values :: Functor f => ([Candle x1 y1] -> f [Candle x2 y2]) -> PlotCandle x1 y1 -> f (PlotCandle x2 y2) #
plot_candle_title :: Functor f => (String -> f String) -> PlotCandle x y -> f (PlotCandle x y) #
plot_candle_tick_length :: Functor f => (Double -> f Double) -> PlotCandle x y -> f (PlotCandle x y) #
plot_candle_rise_fill_style :: Functor f => (FillStyle -> f FillStyle) -> PlotCandle x y -> f (PlotCandle x y) #
plot_candle_line_style :: Functor f => (LineStyle -> f LineStyle) -> PlotCandle x y -> f (PlotCandle x y) #
plot_candle_fill :: Functor f => (Bool -> f Bool) -> PlotCandle x y -> f (PlotCandle x y) #
plot_candle_fall_fill_style :: Functor f => (FillStyle -> f FillStyle) -> PlotCandle x y -> f (PlotCandle x y) #
plot_candle_centre :: Functor f => (Double -> f Double) -> PlotCandle x y -> f (PlotCandle x y) #
data PlotCandle x y #
Value defining a financial interval: opening and closing prices, with maxima and minima; and a style in which to render them. By convention, there are different fill styles depending on whether the price rises (open < close) or falls (close < open). (This plot type can also be re-purposed for statistical intervals, e.g. minimum, first quartile, median, third quartile, maximum.)
Constructors
Instances
| ToPlot PlotCandle | |
Defined in Graphics.Rendering.Chart.Plot.Candle Methods toPlot :: PlotCandle x y -> Plot x y # | |
| Default (PlotCandle x y) | |
Defined in Graphics.Rendering.Chart.Plot.Candle Methods def :: PlotCandle x y # | |
A Value holding price intervals for a given x-coord. An alternative view is that these are statistical intervals: the 0th, 25th, 50th, 75th, and 100th percentiles.
Constructors
| Candle | |
Fields
| |
plot_errbars_values :: Functor f => ([ErrPoint x1 y1] -> f [ErrPoint x2 y2]) -> PlotErrBars x1 y1 -> f (PlotErrBars x2 y2) #
plot_errbars_title :: Functor f => (String -> f String) -> PlotErrBars x y -> f (PlotErrBars x y) #
plot_errbars_tick_length :: Functor f => (Double -> f Double) -> PlotErrBars x y -> f (PlotErrBars x y) #
plot_errbars_overhang :: Functor f => (Double -> f Double) -> PlotErrBars x y -> f (PlotErrBars x y) #
plot_errbars_line_style :: Functor f => (LineStyle -> f LineStyle) -> PlotErrBars x y -> f (PlotErrBars x y) #
symErrPoint :: (Num a, Num b) => a -> b -> a -> b -> ErrPoint a b #
When the error is symmetric, we can simply pass in dx for the error.
Value for holding a point with associated error bounds for each axis.
data PlotErrBars x y #
Value defining a series of error intervals, and a style in which to render them.
Constructors
| PlotErrBars | |
Instances
| ToPlot PlotErrBars | |
Defined in Graphics.Rendering.Chart.Plot.ErrBars Methods toPlot :: PlotErrBars x y -> Plot x y # | |
| Default (PlotErrBars x y) | |
Defined in Graphics.Rendering.Chart.Plot.ErrBars Methods def :: PlotErrBars x y # | |
plot_fillbetween_values :: Functor f => ([(x1, (y1, y1))] -> f [(x2, (y2, y2))]) -> PlotFillBetween x1 y1 -> f (PlotFillBetween x2 y2) #
plot_fillbetween_title :: Functor f => (String -> f String) -> PlotFillBetween x y -> f (PlotFillBetween x y) #
plot_fillbetween_style :: Functor f => (FillStyle -> f FillStyle) -> PlotFillBetween x y -> f (PlotFillBetween x y) #
data PlotFillBetween x y #
Value specifying a plot filling the area between two sets of Y coordinates, given common X coordinates.
Constructors
| PlotFillBetween | |
Fields
| |
Instances
| ToPlot PlotFillBetween | |
Defined in Graphics.Rendering.Chart.Plot.FillBetween Methods toPlot :: PlotFillBetween x y -> Plot x y # | |
| Default (PlotFillBetween x y) | |
Defined in Graphics.Rendering.Chart.Plot.FillBetween Methods def :: PlotFillBetween x y # | |
:: Functor f => ([y1] -> f [y2]) -> PlotHidden x y1 -> f (PlotHidden x y2) #
:: Functor f => ([x1] -> f [x2]) -> PlotHidden x1 y -> f (PlotHidden x2 y) #
data PlotHidden x y #
Value defining some hidden x and y values. The values are not displayed, but they still affect axis scaling.
Constructors
| PlotHidden | |
Fields
| |
Instances
| ToPlot PlotHidden | |
Defined in Graphics.Rendering.Chart.Plot.Hidden Methods toPlot :: PlotHidden x y -> Plot x y # | |
plot_lines_values :: Functor f => ([[(x, y)]] -> f [[(x, y)]]) -> PlotLines x y -> f (PlotLines x y) #
plot_lines_limit_values :: Functor f => ([[(Limit x, Limit y)]] -> f [[(Limit x, Limit y)]]) -> PlotLines x y -> f (PlotLines x y) #
hlinePlot :: String -> LineStyle -> b -> Plot a b #
Helper function to plot a single horizontal line.
Value defining a series of (possibly disjointed) lines, and a style in which to render them.
Constructors
| PlotLines | |
Fields
| |
plot_points_values :: Functor f => ([(x1, y1)] -> f [(x2, y2)]) -> PlotPoints x1 y1 -> f (PlotPoints x2 y2) #
plot_points_title :: Functor f => (String -> f String) -> PlotPoints x y -> f (PlotPoints x y) #
plot_points_style :: Functor f => (PointStyle -> f PointStyle) -> PlotPoints x y -> f (PlotPoints x y) #
data PlotPoints x y #
Value defining a series of datapoints, and a style in which to render them.
Constructors
| PlotPoints | |
Fields
| |
Instances
| ToPlot PlotPoints | |
Defined in Graphics.Rendering.Chart.Plot.Points Methods toPlot :: PlotPoints x y -> Plot x y # | |
| Default (PlotPoints x y) | |
Defined in Graphics.Rendering.Chart.Plot.Points Methods def :: PlotPoints x y # | |
plot_render :: Functor f => ((PointMapFn x y -> BackendProgram ()) -> f (PointMapFn x y -> BackendProgram ())) -> Plot x y -> f (Plot x y) #
plot_legend :: Functor f => ([(String, Rect -> BackendProgram ())] -> f [(String, Rect -> BackendProgram ())]) -> Plot x y -> f (Plot x y) #
plot_all_points :: Functor f => (([x], [y]) -> f ([x], [y])) -> Plot x y -> f (Plot x y) #
mapXY :: PointMapFn x y -> (x, y) -> Point #
joinPlot :: Plot x y -> Plot x y -> Plot x y #
Join any two plots together (they will share a legend).
_plot_render :: Plot x y -> PointMapFn x y -> BackendProgram () #
Given the mapping between model space coordinates and device coordinates, render this plot into a chart.
_plot_legend :: Plot x y -> [(String, Rect -> BackendProgram ())] #
Details for how to show this plot in a legend. For each item the string is the text to show, and the function renders a graphical sample of the plot.
_plot_all_points :: Plot x y -> ([x], [y]) #
All of the model space coordinates to be plotted. These are used to autoscale the axes where necessary.
class ToPlot (a :: * -> * -> *) where #
A type class abstracting the conversion of a value to a Plot.
Minimal complete definition
Instances
solidFillStyle :: AlphaColour Double -> FillStyle #
Fill style that fill everything this the given colour.
Arguments
| :: Double | Radius of circle. |
| -> Double | Rotation (Tau) |
| -> Double | Thickness of line. |
| -> AlphaColour Double | Color of line. |
| -> PointStyle |
Arguments
| :: Double | Radius of circle. |
| -> Double | Thickness of line. |
| -> AlphaColour Double | Color of line. |
| -> PointStyle |
Combination of plus and cross point style.
Arguments
| :: Double | Radius of circle. |
| -> Double | Thickness of line. |
| -> AlphaColour Double | Color of line. |
| -> PointStyle |
Cross point style.
Arguments
| :: Double | Radius of tightest surrounding circle. |
| -> Double | Thickness of line. |
| -> AlphaColour Double | Color of line. |
| -> PointStyle |
Plus sign point style.
Arguments
| :: Double | Radius of circle. |
| -> Int | Number of vertices. |
| -> Bool | Is right-side-up? |
| -> AlphaColour Double | Fill color. |
| -> PointStyle |
Style for filled polygon points.
Arguments
| :: Double | Radius of circle. |
| -> Double | Thickness of line. |
| -> Int | Number of vertices. |
| -> Bool | Is right-side-up? |
| -> AlphaColour Double | Colour of line. |
| -> PointStyle |
Style for stroked polygon points.
Arguments
| :: Double | Radius of circle. |
| -> Double | Thickness of line. |
| -> AlphaColour Double | |
| -> PointStyle |
Style for stroked circle points.
Arguments
| :: Double | Radius of circle. |
| -> AlphaColour Double | Fill colour. |
| -> PointStyle |
Style for filled circle points.
Arguments
| :: Double | Width of line. |
| -> [Double] | The dash pattern in device coordinates. |
| -> AlphaColour Double | Colour of line. |
| -> LineStyle |
Create a dashed line style.
Arguments
| :: Double | Width of line. |
| -> AlphaColour Double | Colour of line. |
| -> LineStyle |
Create a solid line style (not dashed).
defaultColorSeq :: [AlphaColour Double] #
The default sequence of colours to use when plotings different data sets in a graph.
Arguments
| :: PointStyle | Style to use when rendering the point. |
| -> Point | Position of the point to render. |
| -> BackendProgram () |
Draw a single point at the given location.
textDimension :: String -> BackendProgram RectSize #
Get the width and height of the string when rendered.
See textSize.
textDrawRect :: HTextAnchor -> VTextAnchor -> Point -> String -> BackendProgram Rect #
drawTextsR :: HTextAnchor -> VTextAnchor -> Double -> Point -> String -> BackendProgram () #
Draw a multi-line textual label anchored by one of its corners
or edges, with rotation. Rotation angle is given in degrees,
rotation is performed around anchor point.
See drawText.
drawTextR :: HTextAnchor -> VTextAnchor -> Double -> Point -> String -> BackendProgram () #
Draw a textual label anchored by one of its corners
or edges, with rotation. Rotation angle is given in degrees,
rotation is performed around anchor point.
See drawText.
drawTextA :: HTextAnchor -> VTextAnchor -> Point -> String -> BackendProgram () #
Draw a line of text that is aligned at a different anchor point.
See drawText.
fillPointPath :: [Point] -> BackendProgram () #
Fill the region with the given corners.
strokePointPath :: [Point] -> BackendProgram () #
Draw lines between the specified points.
alignFillPoint :: Point -> BackendProgram Point #
Align the point using the environment's alignment function for coordinates.
See getCoordAlignFn.
alignStrokePoint :: Point -> BackendProgram Point #
Align the point using the environment's alignment function for points.
See getPointAlignFn.
alignFillPoints :: [Point] -> BackendProgram [Point] #
The points will be aligned by the getCoordAlignFn, so that
when drawing bitmaps, the edges of the region will fall between
pixels.
alignStrokePoints :: [Point] -> BackendProgram [Point] #
The points will be aligned by the getPointAlignFn, so that
when drawing bitmaps, 1 pixel wide lines will be centred on the
pixels.
alignFillPath :: Path -> BackendProgram Path #
Align the path using the environment's alignment function for coordinates.
This is generally useful when filling.
See alignPath and getCoordAlignFn.
alignStrokePath :: Path -> BackendProgram Path #
Align the path using the environment's alignment function for points.
This is generally useful when stroking.
See alignPath and getPointAlignFn.
alignPath :: (Point -> Point) -> Path -> Path #
Align the path by applying the given function on all points.
withDefaultStyle :: BackendProgram a -> BackendProgram a #
withPointStyle :: PointStyle -> BackendProgram a -> BackendProgram a #
Changes the LineStyle and FillStyle to comply with
the given PointStyle.
withScaleY :: Double -> BackendProgram a -> BackendProgram a #
Apply a local scale on the y-axis.
withScaleX :: Double -> BackendProgram a -> BackendProgram a #
Apply a local scale on the x-axis.
withScale :: Vector -> BackendProgram a -> BackendProgram a #
Apply a local scale.
withTranslation :: Point -> BackendProgram a -> BackendProgram a #
Apply a local translation.
withRotation :: Double -> BackendProgram a -> BackendProgram a #
Apply a local rotation. The angle is given in radians.
data PointShape #
The different shapes a point can have.
Constructors
| PointShapeCircle | A circle. |
| PointShapePolygon Int Bool | Number of vertices and is right-side-up? |
| PointShapePlus | A plus sign. |
| PointShapeCross | A cross. |
| PointShapeStar | Combination of a cross and a plus. |
| PointShapeArrowHead Double | |
| PointShapeEllipse Double Double | Ratio of minor to major axis and rotation |
data PointStyle #
Abstract data type for the style of a plotted point.
Constructors
| PointStyle | |
Fields
| |
Instances
| Default PointStyle | Default style to use for points. |
Defined in Graphics.Rendering.Chart.Drawing Methods def :: PointStyle # | |
getCoordAlignFn :: BackendProgram (Point -> Point) #
Get the coordinate alignment function
getPointAlignFn :: BackendProgram (Point -> Point) #
Get the point alignment function
withClipRegion :: Rect -> BackendProgram a -> BackendProgram a #
Use the given clipping rectangle when drawing in this local environment. The new clipping region is intersected with the given clip region. You cannot escape the clip!
withLineStyle :: LineStyle -> BackendProgram a -> BackendProgram a #
Use the given line style in this local environment when stroking paths.
withFillStyle :: FillStyle -> BackendProgram a -> BackendProgram a #
Use the given fill style in this local environment when filling paths.
withFontStyle :: FontStyle -> BackendProgram a -> BackendProgram a #
Use the given font style in this local environment when drawing text.
An implementing backend is expected to guarentee
to support the following font families: serif, sans-serif and monospace;
If the backend is not able to find or load a given font it is required to fall back to a custom fail-safe font and use it instead.
withTransform :: Matrix -> BackendProgram a -> BackendProgram a #
Apply the given transformation in this local environment when drawing. The given transformation is applied after the current transformation. This means both are combined.
drawText :: Point -> String -> BackendProgram () #
Draw a single-line textual label anchored by the baseline (vertical)
left (horizontal) point. Uses the current FontStyle for drawing.
textSize :: String -> BackendProgram TextSize #
Calculate a TextSize object with rendering information
about the given string without actually rendering it.
fillPath :: Path -> BackendProgram () #
strokePath :: Path -> BackendProgram () #
type BackendProgram a = Program ChartBackendInstr a #
A BackendProgram provides the capability to render a chart somewhere.
The coordinate system of the backend has its initial origin (0,0) in the top left corner of the drawing plane. The x-axis points towards the top right corner and the y-axis points towards the bottom left corner. The unit used by coordinates, the font size, and lengths is the always the same, but depends on the backend. All angles are measured in radians.
The line, fill and font style are set to their default values initially.
Information about the semantics of the instructions can be
found in the documentation of ChartBackendInstr.
line_dashes :: Lens' LineStyle [Double] #
vectorAlignmentFns :: AlignmentFns #
Alignment to render on vector based graphics.
bitmapAlignmentFns :: AlignmentFns #
Alignment to render on raster based graphics.
The different supported line ends.
Constructors
| LineCapButt | Just cut the line straight. |
| LineCapRound | Make a rounded line end. |
| LineCapSquare | Make a square that ends the line. |
The different supported ways to join line ends.
Constructors
| LineJoinMiter | Extends the outline until they meet each other. |
| LineJoinRound | Draw a circle fragment to connet line end. |
| LineJoinBevel | Like miter, but cuts it off if a certain threshold is exceeded. |
Data type for the style of a line.
Constructors
| LineStyle | |
Fields
| |
The possible slants of a font.
Constructors
| FontSlantNormal | Normal font style without slant. |
| FontSlantItalic | With a slight slant. |
| FontSlantOblique | With a greater slant. |
Instances
| Eq FontSlant | |
| Ord FontSlant | |
Defined in Graphics.Rendering.Chart.Backend.Types | |
| Show FontSlant | |
| Default FontSlant | The default font slant. |
Defined in Graphics.Rendering.Chart.Backend.Types | |
data FontWeight #
The possible weights of a font.
Constructors
| FontWeightNormal | Normal font style without weight. |
| FontWeightBold | Bold font. |
Instances
| Eq FontWeight | |
Defined in Graphics.Rendering.Chart.Backend.Types | |
| Ord FontWeight | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods compare :: FontWeight -> FontWeight -> Ordering # (<) :: FontWeight -> FontWeight -> Bool # (<=) :: FontWeight -> FontWeight -> Bool # (>) :: FontWeight -> FontWeight -> Bool # (>=) :: FontWeight -> FontWeight -> Bool # max :: FontWeight -> FontWeight -> FontWeight # min :: FontWeight -> FontWeight -> FontWeight # | |
| Show FontWeight | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods showsPrec :: Int -> FontWeight -> ShowS # show :: FontWeight -> String # showList :: [FontWeight] -> ShowS # | |
| Default FontWeight | The default font weight. |
Defined in Graphics.Rendering.Chart.Backend.Types Methods def :: FontWeight # | |
Data type for a font.
Constructors
| FontStyle | |
Fields
| |
data HTextAnchor #
Possible horizontal anchor points for text.
Constructors
| HTA_Left | |
| HTA_Centre | |
| HTA_Right |
Instances
| Eq HTextAnchor | |
Defined in Graphics.Rendering.Chart.Backend.Types | |
| Ord HTextAnchor | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods compare :: HTextAnchor -> HTextAnchor -> Ordering # (<) :: HTextAnchor -> HTextAnchor -> Bool # (<=) :: HTextAnchor -> HTextAnchor -> Bool # (>) :: HTextAnchor -> HTextAnchor -> Bool # (>=) :: HTextAnchor -> HTextAnchor -> Bool # max :: HTextAnchor -> HTextAnchor -> HTextAnchor # min :: HTextAnchor -> HTextAnchor -> HTextAnchor # | |
| Show HTextAnchor | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods showsPrec :: Int -> HTextAnchor -> ShowS # show :: HTextAnchor -> String # showList :: [HTextAnchor] -> ShowS # | |
data VTextAnchor #
Possible vertical anchor points for text.
Constructors
| VTA_Top | |
| VTA_Centre | |
| VTA_Bottom | |
| VTA_BaseLine |
Instances
| Eq VTextAnchor | |
Defined in Graphics.Rendering.Chart.Backend.Types | |
| Ord VTextAnchor | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods compare :: VTextAnchor -> VTextAnchor -> Ordering # (<) :: VTextAnchor -> VTextAnchor -> Bool # (<=) :: VTextAnchor -> VTextAnchor -> Bool # (>) :: VTextAnchor -> VTextAnchor -> Bool # (>=) :: VTextAnchor -> VTextAnchor -> Bool # max :: VTextAnchor -> VTextAnchor -> VTextAnchor # min :: VTextAnchor -> VTextAnchor -> VTextAnchor # | |
| Show VTextAnchor | |
Defined in Graphics.Rendering.Chart.Backend.Types Methods showsPrec :: Int -> VTextAnchor -> ShowS # show :: VTextAnchor -> String # showList :: [VTextAnchor] -> ShowS # | |
Text metrics returned by textSize.
Constructors
| TextSize | |
Fields
| |
Abstract data type for a fill style.
The contained action sets the required fill style in the rendering state.
Constructors
| FillStyleSolid | |
Fields | |
type AlignmentFn = Point -> Point #
A function to align points for a certain rendering device.
data AlignmentFns #
Holds the point and coordinate alignment function.
Constructors
| AlignmentFns | |
Fields
| |
scalarMultiply :: Double -> Matrix -> Matrix #
Copied from Graphics.Rendering.Cairo.Matrix
rotate :: Double -> Matrix -> Matrix #
Copied from Graphics.Rendering.Cairo.Matrix Rotations angle is given in radians.
translateP :: Vector -> Point -> Point #
Translate a point.
rotateP :: Double -> Point -> Point #
Rotate a point around the origin. The angle is given in radians.
transformP :: Matrix -> Point -> Point #
Transform a point using the given matrix.
makeLinesExplicit :: Path -> Path #
Enriches the path with explicit instructions to draw lines,
that otherwise would be implicit. See Path for details
about what lines in paths are implicit.
Arguments
| :: Monoid m | |
| => (Point -> m) | MoveTo |
| -> (Point -> m) | LineTo |
| -> (Point -> Double -> Double -> Double -> m) | Arc |
| -> (Point -> Double -> Double -> Double -> m) | ArcNeg |
| -> m | Close |
| -> Path | Path to fold |
| -> m |
Fold the given path to a monoid structure.
arcNeg :: Point -> Double -> Double -> Double -> Path #
Like arc, but draws from the stop angle to the start angle
instead of between them.
Arguments
| :: Point | Center point of the circle arc. |
| -> Double | Radius of the circle. |
| -> Double | Angle to start drawing at, in radians. |
| -> Double | Angle to stop drawing at, in radians. |
| -> Path |
Draw the arc of a circle. A straight line connects
the end of the previous path with the beginning of the arc.
The zero angle points in direction of the positive x-axis.
Angles increase in clock-wise direction. If the stop angle
is smaller then the start angle it is increased by multiples of
2 * pi until is is greater or equal.
Move the paths pointer to the given location and draw a straight line while doing so.
mkrect :: Point -> Point -> Point -> Point -> Rect #
Create a rectangle based upon the coordinates of 4 points.
A point in two dimensions.
A vector in two dimensions.
type PointMapFn x y = (Limit x, Limit y) -> Point #
A function mapping between points.
A rectangle is defined by two points.
The path type used by Charts.
A path can consist of several subpaths. Each
is started by a MoveTo operation. All subpaths
are open, except the last one, which may be closed
using the Close operation. When filling a path
all subpaths are closed implicitly.
Closing a subpath means that a line is drawn from the end point to the start point of the subpath.
If a Arc (or ArcNeg) is drawn a implicit line
from the last end point of the subpath is drawn
to the beginning of the arc. Another implicit line
is drawn from the end of an arc to the beginning of
the next path segment.
The beginning of a subpath is either (0,0) or set
by a MoveTo instruction. If the first subpath is started
with an arc the beginning of that subpath is the beginning
of the arc.
Constructors
| MoveTo Point Path | |
| LineTo Point Path | |
| Arc Point Double Double Double Path | |
| ArcNeg Point Double Double Double Path | |
| End | |
| Close |
Copied from Graphics.Rendering.Cairo.Matrix
Constructors
| Matrix | |
class ColourOps (f :: * -> *) where #
Methods
darken :: Num a => a -> f a -> f a #
darken s c blends a colour with black without changing it's opacity.
For Colour, darken s c = blend s c mempty
Instances
| ColourOps AlphaColour | |
Defined in Data.Colour.Internal Methods over :: Num a => AlphaColour a -> AlphaColour a -> AlphaColour a # darken :: Num a => a -> AlphaColour a -> AlphaColour a # | |
| ColourOps Colour | |
class AffineSpace (f :: * -> *) where #
Minimal complete definition
Methods
affineCombo :: Num a => [(a, f a)] -> f a -> f a #
Compute a affine Combination (weighted-average) of points. The last parameter will get the remaining weight. e.g.
affineCombo [(0.2,a), (0.3,b)] c == 0.2*a + 0.3*b + 0.5*c
Weights can be negative, or greater than 1.0; however, be aware that non-convex combinations may lead to out of gamut colours.
Instances
| AffineSpace AlphaColour | |
Defined in Data.Colour.Internal Methods affineCombo :: Num a => [(a, AlphaColour a)] -> AlphaColour a -> AlphaColour a # | |
| AffineSpace Colour | |
Defined in Data.Colour.Internal | |
data AlphaColour a #
This type represents a Colour that may be semi-transparent.
The Monoid instance allows you to composite colours.
x `mappend` y == x `over` y
To get the (pre-multiplied) colour channel of an AlphaColour c,
simply composite c over black.
c `over` black
Instances
This type represents the human preception of colour.
The a parameter is a numeric type used internally for the
representation.
The Monoid instance allows one to add colours, but beware that adding
colours can take you out of gamut. Consider using blend whenever
possible.
colourConvert :: (Fractional b, Real a) => Colour a -> Colour b #
Change the type used to represent the colour coordinates.
transparent :: Num a => AlphaColour a #
This AlphaColour is entirely transparent and has no associated
colour channel.
alphaColourConvert :: (Fractional b, Real a) => AlphaColour a -> AlphaColour b #
Change the type used to represent the colour coordinates.
opaque :: Num a => Colour a -> AlphaColour a #
Creates an opaque AlphaColour from a Colour.
dissolve :: Num a => a -> AlphaColour a -> AlphaColour a #
Returns an AlphaColour more transparent by a factor of o.
withOpacity :: Num a => Colour a -> a -> AlphaColour a #
Creates an AlphaColour from a Colour with a given opacity.
c `withOpacity` o == dissolve o (opaque c)
blend :: (Num a, AffineSpace f) => a -> f a -> f a -> f a #
Compute the weighted average of two points. e.g.
blend 0.4 a b = 0.4*a + 0.6*b
The weight can be negative, or greater than 1.0; however, be aware that non-convex combinations may lead to out of gamut colours.
atop :: Fractional a => AlphaColour a -> AlphaColour a -> AlphaColour a #
c1 `atop` c2 returns the AlphaColour produced by covering
the portion of c2 visible by c1.
The resulting alpha channel is always the same as the alpha channel
of c2.
c1 `atop` (opaque c2) == c1 `over` (opaque c2) AlphaChannel (c1 `atop` c2) == AlphaChannel c2
alphaChannel :: AlphaColour a -> a #
Returns the opacity of an AlphaColour.
Plots
buildPlots :: BaseSpace c ~ v => Axis b c n -> [StyledPlot b v n] #
Build a list of styled plots from the axis, ready to be rendered.
This takes into account any AxisStyle changes and applies the
finalPlots modifications.
The StyledPlots can be rendered with renderStyledPlot and the
legend entries can be obtained with styledPlotLegends. This is
what renderAxis can uses internally but might be useful for
debugging or generating your own legend.
r2AxisMain :: (Parseable (MainOpts (QDiagram b V2 Double Any)), Mainable (Axis b V2 Double)) => Axis b V2 Double -> IO () #
mainWith specialised to a 2D Axis.
class RenderAxis b (v :: * -> *) n where #
Renderable axes.
Minimal complete definition
Methods
renderAxis :: Axis b v n -> QDiagram b (BaseSpace v) n Any #
Render an axis to a diagram. The size of the diagram is
determined by the axisSize.
Instances
| (TypeableFloat n, Renderable (Path V2 n) b) => RenderAxis b V2 n | The |
Defined in Plots.Axis.Render Methods renderAxis :: Axis b V2 n -> QDiagram b (BaseSpace V2) n Any # | |
| (TypeableFloat n, Renderable (Path V2 n) b) => RenderAxis b Polar n | |
Defined in Plots.Axis.Render | |
labelBars :: HasLabels a => [String] -> State a () #
Labels to use for each bar (or group of bars) along the axis.
Arguments
| :: (a -> State (PlotMods b V2 n) ()) | Modifier the |
| -> State (MultiBarState b n a) () | Changes to each data set when executing |
Given the data for the bar, modify the properties for the bar that uses that data.
Some common functions to use on the PlotMods:
plotColour- change the colour of the barsareaStyle- modify the style of the barskey- add a legend entry for that group of bars
Arguments
| :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f, Foldable g) | |
| => f a | data for multi plot |
| -> (a -> g n) | extract bar heights from each data set |
| -> State (MultiBarState b n a) () | state to make changes to the plot |
| -> m () | changes to the |
Construct multiple bars, grouped together. See MultiBarState for
details on how to customise how the bars are drawn.
Example
import Plots
breakfastData :: [(String, V2 Double)]
breakfastData = [("eggs", V2 7 5), ("bacon", V2 5 4), ("sausage", V2 2 7), ("beans", V2 2 1)]sortedData = [ ("girls", breakfastData^..each._2._x)
, ("boys", breakfastData^..each._2._y)
]multiBarAxis :: Axis B V2 Double
multiBarAxis = r2Axis &~ do
yMin ?= 0
hide (xAxis . majorGridLines)
hide minorTicks
xLabel .= "breakfast item"
multiBars sortedData snd $ do
vertical .= True
barWidth //= 2
labelBars (map fst breakfastData)
onBars $ \(nm,_) -> key nm
-- show y values without decimal point
yAxis . tickLabelFunction .= atMajorTicks (show . round)
-- we should really force all major ticks to like on integers toomultiBarExample = renderAxis multiBarAxis
runningBars :: Num n => State (MultiBarState b n a) () #
Normal bars where each data set follows the last.
Example
stackedEqualBars :: Fractional n => n -> State (MultiBarState b n a) () #
Bars stacked on top of each other where every bar is the given height.
Example
stackedBars :: Num n => State (MultiBarState b n a) () #
Bars stacked on top of each other.
Example
groupedBars' :: Fractional n => n -> State (MultiBarState b n a) () #
Bars that are grouped together such that each group is a single
barWidth. The parameter is the multiplier for the width of
individual bars, where corresponds
to bars in a group touching. reduce the width of individual bars.groupedBars 1 = groupedBars
Example
groupedBars :: Fractional n => State (MultiBarState b n a) () #
Bars that are grouped together such that each group is a single
barWidth. The bars in a group are touching, see groupedBars' to
reduce the width of individual bars.
Example
Arguments
| :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) | |
| => f (n, n) | bar limits |
| -> State (Plot (BarPlot n) b) () | changes to the bars |
| -> m () |
Same as barPlot but with lower and upper bounds for the bars.
Arguments
| :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) | |
| => f (String, n) | bar heights with name |
| -> m () | add plot to the |
Simple version of namedBarPlot without any modification to the Plot.
Example
import Plots
namedBarAxis' :: Axis B V2 Double
namedBarAxis' = r2Axis &~ do
xMin ?= 0
hide majorGridLines
namedBarPlot' [("eggs", 12), ("bacon", 5), ("sausage", 9), ("beans", 3)]namedBarExample' = renderAxis namedBarAxis'
Arguments
| :: (MonadState (Axis b V2 n) m, Plotable (BarPlot n) b, Foldable f) | |
| => f (String, n) | bar heights with name |
| -> State (Plot (BarPlot n) b) () | changes to the bars |
| -> m () | changes to the |
A add BarPlot to an Axis while naming the bars.
Example
import Plots
namedBarAxis :: Axis B V2 Double
namedBarAxis = r2Axis &~ do
yMin ?= 0
hide (xAxis . majorGridLines)
namedBarPlot [("eggs", 12), ("bacon", 5), ("sausage", 9), ("beans", 3)] $ do
vertical .= True
barWidth //= 2
namedBarExample = renderAxis namedBarAxisArguments
| :: Fractional n | |
| => n | width factor of individual bars (1 = touching) |
| -> BarLayout n | |
| -> [[n]] | |
| -> [BarPlot n] |
Make bars that are grouped together. Each group of bars is treated
as a single bar when using the BarPlotsOpts. There is an addition
parameter to adjust the width of each individual bar.
Arguments
| :: Fractional n | |
| => n | value each bar reaches |
| -> BarLayout n | |
| -> [[n]] | values |
| -> [BarPlot n] |
Similar to mkMultiStacked but stack has the same height.
mkStackedBars :: Num n => BarLayout n -> [[n]] -> [BarPlot n] #
Create uniform bars from groups of data, placing one on top of the
other. The first list will be the same as mkUniformBars opts (map
(0,) ys), subsequent lists will be placed on top.
mkRunningBars :: Num n => BarLayout n -> [[(n, n)]] -> [BarPlot n] #
Create uniform bars from groups of data, placing one group after the other.
mkFloatingBars :: Foldable f => BarLayout n -> f (n, n) -> BarPlot n #
Create equidistant bars with lower and upper bounds for each bar.
mkBars :: (Foldable f, Num n) => BarLayout n -> f n -> BarPlot n #
Create equidistant bars using the values.
The way an individual bar plot or a group of bars plots are laid out on the axis.
Instances
| Fractional n => Default (BarLayout n) | |
Defined in Plots.Types.Bar | |
| HasBarLayout (BarLayout n) | |
| HasOrientation (BarLayout n) | |
Defined in Plots.Types.Bar Methods orientation :: Lens' (BarLayout n) Orientation # | |
| type N (BarLayout n) | |
Defined in Plots.Types.Bar type N (BarLayout n) = n | |
class HasOrientation a => HasBarLayout a where #
Class of things that have a modifiable BarLayout.
Minimal complete definition
Methods
barLayout :: Lens' a (BarLayout (N a)) #
Lens onto the BarLayout
The width bar for single / stacked bars or the width of a group for grouped bar plot.
Default is 0.8
barSpacing :: Lens' a (N a) #
The spacing between each bar or group of bars.
Default is 1
The distance from the axis to centre of the first bar.
Default is 1
Instances
| HasBarLayout (BarLayout n) | |
| HasBarLayout (BarPlot n) | |
| HasBarLayout a => HasBarLayout (Plot a b) | |
| HasBarLayout (MultiBarState b n a) | |
Defined in Plots.Types.Bar Methods barLayout :: Lens' (MultiBarState b n a) (BarLayout (N (MultiBarState b n a))) # barWidth :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) # barSpacing :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) # barStart :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) # | |
A bar plot for a single set of bars. Multi-bar plots are achieved
by having multiple BarPlots. Each bar plot corresponds to a
single legend entry. To get multiple bar entries/colours, use
multiple BarPlots
Instances
| HasBarLayout (BarPlot n) | |
| HasOrientation (BarPlot n) | |
Defined in Plots.Types.Bar Methods orientation :: Lens' (BarPlot n) Orientation # | |
| OrderedField n => Enveloped (BarPlot n) | |
Defined in Plots.Types.Bar Methods getEnvelope :: BarPlot n -> Envelope (V (BarPlot n)) (N (BarPlot n)) | |
| (TypeableFloat n, Renderable (Path V2 n) b) => Plotable (BarPlot n) b | |
Defined in Plots.Types.Bar | |
| type N (BarPlot n) | |
Defined in Plots.Types.Bar type N (BarPlot n) = n | |
| type V (BarPlot n) | |
Defined in Plots.Types.Bar type V (BarPlot n) = V2 | |
data MultiBarState b n a #
The MultiBarState is used to set the various options available
when building multiple bar plots together. The main functions used
to modify this state:
To choose the way the bars are grouped together choose one of
groupedBars- Together in grouped (the default)stackedBars- On on top of anotherstackedEqualBars-stackedBarswith the same heightrunningBars- each group of bars follows the last
- Modify the
PlotOptionsandPlotStyleof groups of bars withonBars. Modify the layout of the (groups of) bars with
orientation- Horizontal or vertical barsbarWidth- Width of each (group of) bar(s)barSpacing- Space between each (group of) bar(s)barStart- Start of centre of first bar
- Add labels to each (group of) bars with
labelBars.
Instances
| HasBarLayout (MultiBarState b n a) | |
Defined in Plots.Types.Bar Methods barLayout :: Lens' (MultiBarState b n a) (BarLayout (N (MultiBarState b n a))) # barWidth :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) # barSpacing :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) # barStart :: Lens' (MultiBarState b n a) (N (MultiBarState b n a)) # | |
| HasOrientation (MultiBarState b n a) | |
Defined in Plots.Types.Bar Methods orientation :: Lens' (MultiBarState b n a) Orientation # | |
| HasLabels (MultiBarState b n a) | |
Defined in Plots.Types.Bar Methods labels :: Lens' (MultiBarState b n a) [String] | |
| type N (MultiBarState b n a) | |
Defined in Plots.Types.Bar type N (MultiBarState b n a) = n | |
Arguments
| :: (VectorLike V2 Int i, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) | |
| => i | extent of array |
| -> (i -> Double) | heat from index |
| -> m () | add plot to |
Add a HeatMap plot using the extent of the heatmap and a
generating function without changes to the heap map options.
heatMapIndexed::V2Int-> (V2Int->Double) ->State(AxisbV2n) ()heatMapIndexed:: (Int,Int) -> ((Int,Int) ->Double) ->State(AxisbV2n) ()
Example
import Plots heatMapIndexedAxis' :: Axis B V2 Double heatMapIndexedAxis' = r2Axis &~ do display colourBar axisExtend .= noExtend axisColourMap .= Plots.magma let f (V2 x y) = fromIntegral x + fromIntegral y heatMapIndexed' (V2 3 3) f
heatMapIndexedExample' = renderAxis heatMapIndexedAxis'
Arguments
| :: (VectorLike V2 Int i, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) | |
| => i | extent of array |
| -> (i -> Double) | heat from index |
| -> State (Plot (HeatMap b n) b) () | changes to plot options |
| -> m () | add plot to |
Add a HeatMap plot using the extent of the heatmap and a
generating function.
heatMapIndexed::V2Int-> (V2Int->Double) ->State(Plot(HeatMapb n)) () ->State(AxisbV2n) ()heatMapIndexed:: (Int,Int) -> ((Int,Int) ->Double) ->State(Plot(HeatMapb n)) () ->State(AxisbV2n) ()
Example
import Plots heatMapIndexedAxis :: Axis B V2 Double heatMapIndexedAxis = r2Axis &~ do display colourBar axisExtend .= noExtend let f (V2 x y) = fromIntegral x + fromIntegral y heatMapIndexed (V2 3 3) f $ heatMapSize .= V2 10 10
heatMapIndexedExample = renderAxis heatMapIndexedAxis
Arguments
| :: (Foldable f, Foldable g, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) | |
| => f (g Double) | |
| -> m () | add plot to |
Add a HeatMap plot using the extent of the heatmap and a
generating function.
heatMap':: [[Double]] ->State(AxisbV2n) ()
Example
import Plots heatMapAxis' :: Axis B V2 Double heatMapAxis' = r2Axis &~ do display colourBar axisExtend .= noExtend axisColourMap .= Plots.magma let xs = [[1,2,3],[4,5,6]] heatMap' xs
heatMapExample' = renderAxis heatMapAxis'
Arguments
| :: (Foldable f, Foldable g, TypeableFloat n, Typeable b, MonadState (Axis b V2 n) m, Renderable (Path V2 n) b) | |
| => f (g Double) | |
| -> State (Plot (HeatMap b n) b) () | changes to plot options |
| -> m () | add plot to |
Add a HeatMap plot using the extent of the heatmap and a
generating function.
heatMap:: [[Double]] ->State(Plot(HeatMapb n)) () ->State(AxisbV2n) ()
Example
import Plots heatMapAxis :: Axis B V2 Double heatMapAxis = r2Axis &~ do display colourBar axisExtend .= noExtend let xs = [[1,2,3],[4,5,6]] heatMap xs $ heatMapSize .= V2 10 10
heatMapExample = renderAxis heatMapAxis
mkHeatMap :: (Renderable (Path V2 n) b, TypeableFloat n) => HeatMatrix -> HeatMap b n #
Construct a Heatmap using the given HeatMatrix.
pathHeatRender :: (Renderable (Path V2 n) b, TypeableFloat n) => HeatMatrix -> ColourMap -> QDiagram b V2 n Any #
Render the heat map as a collection squares made up of Trails.
This method is compatible with all backends and should always look
sharp. However it can become slow and large for large heat maps.
It is recommended to use pathHeatRender for small heat maps and
pixelHeatRender for larger ones.
Example
import Plots
pathHeatRenderExample =
let f (V2 x y) = fromIntegral x + fromIntegral y
myHM = mkHeatMatrix (V2 5 5) f
in pathHeatRender myHM viridisheatImage :: HeatMatrix -> ColourMap -> Image PixelRGB8 #
Create an image of PixelsRGB8 using the heat matrix.
pixelHeatRender' :: (Renderable (DImage n Embedded) b, TypeableFloat n) => Int -> HeatMatrix -> ColourMap -> QDiagram b V2 n Any #
Render an heatmap as an ImageRGB8 with n pixels per heat matrix
point.
Example
import Plots
pixelHeatRenderExample' =
let f (V2 x y) = fromIntegral x + fromIntegral y
myHM = mkHeatMatrix (V2 5 5) f
in pixelHeatRender' 10 myHM viridispixelHeatRender :: (Renderable (DImage n Embedded) b, TypeableFloat n) => HeatMatrix -> ColourMap -> QDiagram b V2 n Any #
Render an heatmap as an ImageRGB8.
Example
import Plots
pixelHeatRenderExample =
let f (V2 x y) = fromIntegral x + fromIntegral y
myHM = mkHeatMatrix (V2 5 5) f
in pixelHeatRender myHM viridishmPoints :: IndexedTraversal' (V2 Int) HeatMatrix Double #
Indexed traversal over the values of a HeatMatrix.
mkHeatMatrix' :: (Foldable f, Foldable g) => f (g Double) -> HeatMatrix #
Construct a heat matrix from a foldable of foldables.
mkHeatMatrix':: [[Double]] ->HeatMatrixmkHeatMatrix':: [VectorDouble] ->HeatMatrix
mkHeatMatrix :: V2 Int -> (V2 Int -> Double) -> HeatMatrix #
Construct a heat matrix from a size and a generating function.
data HeatMatrix #
2D Array of Doubles.
A mapping from points in a 2D axis do Doubles. These Doubles
are converted to colours using the axis ColourMap.
Instances
class HasHeatMap (f :: * -> *) a b | a -> b where #
Class of things that let you change the heatmap options.
Minimal complete definition
Methods
heatMapOptions :: LensLike' f a (HeatMap b (N a)) #
Lens onto the heatmap options.
heatMapGridVisible :: LensLike' f a Bool #
Whether there should be grid lines draw for the heat map.
Default is False.
heatMapGridStyle :: LensLike' f a (Style V2 (N a)) #
The style applied to the grid lines for the heat map, if they're visible.
Default is mempty.
heatMapSize :: LensLike' f a (V2 (N a)) #
The size of each individual square in the heat map.
Default is .V2 1 1
heatMapExtent :: LensLike' f a (V2 (N a)) #
The size of the full extend of the heat map.
Default is extent of the heat matrix.
heatMapStart :: LensLike' f a (P2 (N a)) #
The starting point at the bottom left corner of the heat map.
Default is origin
heatMapCentre :: LensLike' f a (P2 (N a)) #
The center point of the heat map.
heatMapLimits :: LensLike' f a (Maybe (Double, Double)) #
Limits (a,b) used on the data such that a is the start of the
ColourMap and b is the end of the ColourMap. Default is (0,1).
heatMapRender :: LensLike' f a (HeatMatrix -> ColourMap -> QDiagram b V2 (N a) Any) #
Funtion used to render the heat map. See pathHeatRender and
pixelHeatRender.
Default is pathHeatRender.
Instances
histogramPlotOf' :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, RealFrac n) => Fold s n -> s -> m () #
Same as histogramPlotOf without any changes to the plot.
Arguments
| :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, RealFrac n) | |
| => Fold s n | fold over the data |
| -> s | data to fold |
| -> State (Plot (HistogramOptions n) b) () | change to the plot |
| -> m () | add plot to the |
Add a HistogramPlot using a fold over the data.
Arguments
| :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, Foldable f, RealFrac n) | |
| => f n | data |
| -> m () | add plot to axis |
Make a HistogramPlot without changes to the plot options.
Arguments
| :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, Foldable f, RealFrac n) | |
| => f n | data |
| -> State (Plot (HistogramOptions n) b) () | changes to plot options |
| -> m () | add plot to axis |
Add a HistogramPlot to the AxisState from a data set.
Example
import Plots
histogramAxis :: Axis B V2 Double
histogramAxis = r2Axis &~ do
histogramPlot sampleData $ do
key "histogram"
plotColor .= blue
areaStyle . _opacity .= 0.5histogramExample = renderAxis histogramAxis
mkHistogramPlot :: (Foldable f, RealFrac n) => HistogramOptions n -> f n -> HistogramPlot n #
Create a histogram by binning the data using the
HistogramOptions.
Cumulative density function estimate. The height of each bar is equal to the cumulative relative number of observations in the bin and all previous bins. The height of the last bar is 1.
Example
cumilative :: NormalisationMethod #
The height of each bar is the cumulative number of observations in each bin and all previous bins. The height of the last bar is the total number of observations.
Example
The total area of the bars is 1. This gives a probability density
function estimate.
Example
countDensity :: NormalisationMethod #
The height of each bar is n / w where n is the number of
observations and w is the total width.
Example
probability :: NormalisationMethod #
The sum of the heights of the bars is equal to 1.
Example
Arguments
| :: Foldable f | |
| => n | start of first bin |
| -> n | width of each bin |
| -> f n | heights of the bins |
| -> HistogramPlot n |
Construct a HistogramPlot from raw histogram data.
Arguments
| :: (MonadState (Axis b V2 n) m, Plotable (HistogramPlot n) b, Foldable f) | |
| => n | start of first bin |
| -> n | width of each bin |
| -> f n | heights of the bins |
| -> State (Plot (HistogramPlot n) b) () | |
| -> m () |
Plot an already computed histogram with equally sized bins.
data HistogramPlot n #
Simple histogram type supporting uniform bins.
Instances
| HasOrientation (HistogramPlot n) | |
Defined in Plots.Types.Histogram Methods orientation :: Lens' (HistogramPlot n) Orientation # | |
| OrderedField n => Enveloped (HistogramPlot n) | |
Defined in Plots.Types.Histogram Methods getEnvelope :: HistogramPlot n -> Envelope (V (HistogramPlot n)) (N (HistogramPlot n)) | |
| (TypeableFloat n, Renderable (Path V2 n) b) => Plotable (HistogramPlot n) b | |
Defined in Plots.Types.Histogram Methods renderPlotable :: InSpace v n0 (HistogramPlot n) => AxisSpec v n0 -> PlotStyle b v n0 -> HistogramPlot n -> QDiagram b v n0 Any # defLegendPic :: InSpace v n0 (HistogramPlot n) => PlotStyle b v n0 -> HistogramPlot n -> QDiagram b v n0 Any # | |
| type N (HistogramPlot n) | |
Defined in Plots.Types.Histogram type N (HistogramPlot n) = n | |
| type V (HistogramPlot n) | |
Defined in Plots.Types.Histogram type V (HistogramPlot n) = V2 | |
data NormalisationMethod #
The way to normalise the data from a histogram. The default method
is count.
Instances
| Default NormalisationMethod | |
Defined in Plots.Types.Histogram Methods | |
data HistogramOptions n #
Options for binning histogram data. For now only very basic histograms building is supported.
Instances
| Default (HistogramOptions n) | |
Defined in Plots.Types.Histogram Methods def :: HistogramOptions n # | |
| HasHistogramOptions (HistogramOptions n) | |
Defined in Plots.Types.Histogram Methods histogramOptions :: Lens' (HistogramOptions n) (HistogramOptions (N (HistogramOptions n))) # numBins :: Lens' (HistogramOptions n) Int # binRange :: Lens' (HistogramOptions n) (Maybe (N (HistogramOptions n), N (HistogramOptions n))) # normaliseSample :: Lens' (HistogramOptions n) NormalisationMethod # | |
| HasOrientation (HistogramOptions n) | |
Defined in Plots.Types.Histogram Methods orientation :: Lens' (HistogramOptions n) Orientation # | |
| type N (HistogramOptions n) | |
Defined in Plots.Types.Histogram type N (HistogramOptions n) = n | |
| type V (HistogramOptions n) | |
Defined in Plots.Types.Histogram type V (HistogramOptions n) = V2 | |
class HasOrientation a => HasHistogramOptions a where #
Minimal complete definition
Methods
histogramOptions :: Lens' a (HistogramOptions (N a)) #
Options for building the histogram from data.
The number of bins (bars) to use for the histogram. Must be positive.
Default is 10.
binRange :: Lens' a (Maybe (N a, N a)) #
The range of data to consider when building the histogram. Any data outside the range is ignored.
normaliseSample :: Lens' a NormalisationMethod #
Should the resulting histogram be normalised so the total area is 1.
Default is False.
Instances
| HasHistogramOptions (HistogramOptions n) | |
Defined in Plots.Types.Histogram Methods histogramOptions :: Lens' (HistogramOptions n) (HistogramOptions (N (HistogramOptions n))) # numBins :: Lens' (HistogramOptions n) Int # binRange :: Lens' (HistogramOptions n) (Maybe (N (HistogramOptions n), N (HistogramOptions n))) # normaliseSample :: Lens' (HistogramOptions n) NormalisationMethod # | |
| HasHistogramOptions a => HasHistogramOptions (Plot a b) | |
Defined in Plots.Types.Histogram | |
mkPathOf :: (PointLike v n p, OrderedField n) => Fold s t -> Fold t p -> s -> Path v n #
Construct a localed trail from a fold over points.
mkPath :: (PointLike v n p, OrderedField n, Foldable f, Foldable g) => g (f p) -> Path v n #
Construct a localed trail from a fold over points.
mkTrailOf :: (PointLike v n p, OrderedField n) => Fold s p -> s -> Located (Trail v n) #
Construct a localed trail from a fold over points.
mkTrail :: (PointLike v n p, OrderedField n, Foldable f) => f p -> Located (Trail v n) #
Construct a localed trail from a list of folable of points.
Arguments
| :: (BaseSpace c ~ v, Foldable f, PointLike v n p, Plotable (Path v n) b, Fractional (v n), MonadState (Axis b c n) m) | |
| => f p | points to turn into trail |
| -> m () | add plot to the |
Add a smooth Path plot from a list of points using cubicSpline
without changes to the plot options.
Arguments
| :: (BaseSpace c ~ v, Foldable f, Metric v, PointLike v n p, Plotable (Path v n) b, Fractional (v n), MonadState (Axis b c n) m) | |
| => f p | points to turn into trail |
| -> State (Plot (Path v n) b) () | changes to plot options |
| -> m () | add plot to the |
Add a smooth Path plot from a list of points using cubicSpline.
Arguments
| :: (BaseSpace c ~ v, Metric v, Foldable f, PointLike v n p, Plotable (Path v n) b, MonadState (Axis b c n) m) | |
| => f p | points to turn into trail |
| -> m () | add plot to the |
Add a Path plot from a list of points.
Arguments
| :: (BaseSpace c ~ v, Metric v, Foldable f, PointLike v n p, Plotable (Path v n) b, MonadState (Axis b c n) m) | |
| => f p | points to turn into trail |
| -> State (Plot (Path v n) b) () | changes to plot options |
| -> m () | add plot to the |
Add a Path plot from a list of points.
Arguments
| :: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) | |
| => Path v n | path to plot |
| -> m () | add plot to the |
Arguments
| :: (BaseSpace c ~ v, Plotable (Path v n) b, MonadState (Axis b c n) m) | |
| => Trail v n | trail to plot |
| -> m () | add plot to the |
wedgePlot :: (v ~ BaseSpace c, v ~ V2, PointLike v n (Polar n), MonadState (Axis b c n) m, Plotable (Wedge n) b) => Direction V2 n -> Angle n -> State (Plot (Wedge n) b) () -> m () #
Add a single PiePlot to the AxisState from a data set.
Example
import Plots wedgePlotAxis :: Axis B Polar Double wedgePlotAxis = polarAxis &~ do wedgePlot xDir (38@@deg) $ key "wedge"
wedgeExample = renderAxis wedgePlotAxis
Arguments
| :: (MonadState (Axis b Polar n) m, Plotable (Wedge n) b, Foldable f) | |
| => f n | weight of each wedge |
| -> m () |
Make a pie plot from list of values without any changes.
Example
import Plots piePlotAxis' :: Axis B Polar Double piePlotAxis' = polarAxis &~ do piePlot' [1,3,5,2] wedgeInnerRadius .= 0.5 hide (axes . traversed)
pieExample' = renderAxis piePlotAxis'
Arguments
| :: (MonadState (Axis b Polar n) m, Plotable (Wedge n) b, Foldable f) | |
| => f a | data for each wedge |
| -> (a -> n) | extract weight of each wedge |
| -> State (PieState b n a) () | |
| -> m () |
Make a pie plot from a list of data by making a series of wedge plots.
Example
import Plots
pieData = [("red", 3), ("blue", 4), ("green", 2), ("purple", 5)]
piePlotAxis :: Axis B Polar Double
piePlotAxis = polarAxis &~ do
piePlot pieData snd $ wedgeKeys fst
hide (axes . traversed)piePlotExample = renderAxis piePlotAxis
wedgeKeys :: Num n => (a -> String) -> State (PieState b n a) () #
Add a legend entry for each item given a function that extracts the item's name.
onWedges :: (a -> State (Plot (Wedge n) b) ()) -> State (PieState b n a) () #
Modify the state for each wedge given the data entry.
Some common lenses to use on the Wedge:
plotColour- change the colour of the barsareaStyle- modify the style of the barskey- add a legend entry for that group of barswedgeOffset- the offset of the wedge from the center
Arguments
| :: Num n | |
| => Direction V2 n | starting direction |
| -> Angle n | width of wedge |
| -> Wedge n | resulting wedge |
Create a pie wedge with unit radius, starting at direction d with
width theta.
Contains information to draw a single wedge of a pie. It is not intended to be draw directly. Instead use 'piePlot.
Instances
| HasWedge f (Wedge n) | |
Defined in Plots.Types.Pie Methods pieWedge :: LensLike' f (Wedge n) (Wedge (N (Wedge n))) # wedgeOuterRadius :: LensLike' f (Wedge n) (N (Wedge n)) # wedgeInnerRadius :: LensLike' f (Wedge n) (N (Wedge n)) # wedgeOffset :: LensLike' f (Wedge n) (N (Wedge n)) # wedgeWidth :: LensLike' f (Wedge n) (Angle (N (Wedge n))) # wedgeDirection :: LensLike' f (Wedge n) (Direction V2 (N (Wedge n))) # | |
| RealFloat n => Enveloped (Wedge n) | |
Defined in Plots.Types.Pie Methods getEnvelope :: Wedge n -> Envelope (V (Wedge n)) (N (Wedge n)) | |
| (TypeableFloat n, Renderable (Path V2 n) b) => Plotable (Wedge n) b | |
Defined in Plots.Types.Pie | |
| type N (Wedge n) | |
Defined in Plots.Types.Pie type N (Wedge n) = n | |
| type V (Wedge n) | |
Defined in Plots.Types.Pie type V (Wedge n) = V2 | |
class HasWedge (f :: * -> *) a where #
Minimal complete definition
Methods
pieWedge :: LensLike' f a (Wedge (N a)) #
Description on how to draw a wedge.
wedgeOuterRadius :: LensLike' f a (N a) #
The outside radius of the wedge. Default is 1.
wedgeInnerRadius :: LensLike' f a (N a) #
The inside radius of the wedge. Default is $0$.
wedgeOffset :: LensLike' f a (N a) #
The offset of the wedge from the center.
wedgeWidth :: LensLike' f a (Angle (N a)) #
The width of the wedge, starting from the wedgeDirection.
wedgeDirection :: LensLike' f a (Direction V2 (N a)) #
The inititial direction of the wedge.
Instances
The state used to draw a part chart made of multiple pie wedges.
Instances
| Applicative f => HasWedge f (PieState b n a) | |
Defined in Plots.Types.Pie Methods pieWedge :: LensLike' f (PieState b n a) (Wedge (N (PieState b n a))) # wedgeOuterRadius :: LensLike' f (PieState b n a) (N (PieState b n a)) # wedgeInnerRadius :: LensLike' f (PieState b n a) (N (PieState b n a)) # wedgeOffset :: LensLike' f (PieState b n a) (N (PieState b n a)) # wedgeWidth :: LensLike' f (PieState b n a) (Angle (N (PieState b n a))) # wedgeDirection :: LensLike' f (PieState b n a) (Direction V2 (N (PieState b n a))) # | |
| type N (PieState b n a) | |
Defined in Plots.Types.Pie type N (PieState b n a) = n | |
| type V (PieState b n a) | |
Defined in Plots.Types.Pie type V (PieState b n a) = V2 | |
gscatterOptionsFor :: (InSpace v n a, HasScatterOptions f a d) => proxy d -> LensLike' f a (ScatterOptions v n d) #
Helper to traverse over a general scatter plot where the type of d is not infered.
Arguments
| :: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable d, Foldable f) | |
| => f d | data |
| -> (d -> p) | extract point from data |
| -> State (Plot (ScatterOptions v n d) b) () | options for plot |
| -> m () | add plot to |
A general scatter plot allow using any data type d to determine
the scatterTransform and scatterStyle.
bubbleStyle :: (InSpace v n a, Settable f, HasScatterOptions f a (n, Point v n)) => LensLike' f a (n -> Style v n) #
Setter over the style function for a bubblePlot. Default is mempty.
bubbleStyle::Setter'(Plot(BubbleOptionsv n) v) (n ->Stylev n)
Note that this is the less general version of , which would give a bubblePlot .
scatterTransformLensLike onto (n,
.Point v n) -> Style v n
bubbleTransform :: (InSpace v n a, HasScatterOptions f a (n, Point v n), Settable f) => LensLike' f a (n -> Transformation v n) #
Setter over the transform function for a bubblePlot. Default is scale.
bubbleOptions::Setter'(Plot(BubbleOptionsv n) v) (n ->Transformationv n)
Note that this is the less general version of , which would give a bubblePlot .
scatterTransformLensLike onto (n,
.Point v n) -> Transformation v n
bubbleOptions :: (InSpace v n a, HasScatterOptions f a (n, Point v n)) => LensLike' f a (BubbleOptions v n) #
LensLike onto into a ScatterOptions made up of a scaler n, and
a point, Point v n
bubbleOptions::Lens'(Plot(BubbleOptionsv n) v) (BubbleOptionsv n)
Arguments
| :: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable n) | |
| => Fold s (n, p) | fold over the data |
| -> s | data |
| -> State (Plot (BubbleOptions v n) b) () | changes to the options |
| -> m () | add plot to |
Version of bubblePlot using a Fold over the data without any
changes to the BubbleOptions.
Arguments
| :: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable n) | |
| => Fold s (n, p) | fold over the data |
| -> s | data |
| -> State (Plot (BubbleOptions v n) b) () | changes to the options |
| -> m () | add plot to |
Version of bubblePlot using a Fold over the data.
Arguments
| :: (v ~ BaseSpace c, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Foldable f) | |
| => f (n, p) | fold over points with a size |
| -> m () | add plot to |
Simple version of bubblePlot without any changes to the Plot.
Arguments
| :: (BaseSpace c ~ v, PointLike v n p, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Typeable n, Foldable f) | |
| => f (n, p) | fold over points with a size |
| -> State (Plot (BubbleOptions v n) b) () | changes to the options |
| -> m () | add plot to |
Scatter plots with extra numeric parameter. By default the extra parameter is the scale of the marker but this can be changed.
Arguments
| :: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b) | |
| => Fold s p | fold over points |
| -> s | data to fold |
| -> m () | add plot to axis |
Version of scatterPlot that accepts a Fold over the data
without any changes to the ScatterOptions.
Arguments
| :: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b) | |
| => Fold s p | fold over points |
| -> s | data to fold |
| -> State (Plot (ScatterOptions v n (Point v n)) b) () | changes to plot options |
| -> m () | add plot to |
Version of scatterPlot that accepts a Fold over the data.
Arguments
| :: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Foldable f) | |
| => f p | points to plot |
| -> m () | add plot to |
Version of scatterPlot without any changes to the
ScatterOptions.
Example
import Plots mydata4 = [(1,3), (2,5.5), (3.2, 6), (3.5, 6.1)] mydata5 = mydata1 & each . _1 *~ 0.5 mydata6 = [V2 1.2 2.7, V2 2 5.1, V2 3.2 2.6, V2 3.5 5]
scatterAxis' :: Axis B V2 Double scatterAxis' = r2Axis &~ do scatterPlot' mydata4 scatterPlot' mydata5 scatterPlot' mydata6
scatterExample' = renderAxis scatterAxis'
Arguments
| :: (BaseSpace c ~ v, PointLike v n p, Typeable n, MonadState (Axis b c n) m, Plotable (ScatterPlot v n) b, Foldable f) | |
| => f p | points to plot |
| -> State (Plot (ScatterOptions v n (Point v n)) b) () | changes to plot options |
| -> m () | add plot to |
Add a ScatterPlot to the AxisState from a data set.
myaxis = r2Axis ~&
scatterPlot data1
Example
import Plots mydata1 = [(1,3), (2,5.5), (3.2, 6), (3.5, 6.1)] mydata2 = mydata1 & each . _1 *~ 0.5 mydata3 = [V2 1.2 2.7, V2 2 5.1, V2 3.2 2.6, V2 3.5 5]
scatterAxis :: Axis B V2 Double scatterAxis = r2Axis &~ do scatterPlot mydata1 $ key "data 1" scatterPlot mydata2 $ key "data 2" scatterPlot mydata3 $ key "data 3"
scatterExample = renderAxis scatterAxis
scatterOptions :: (InSpace v n a, HasScatterOptions f a (Point v n)) => LensLike' f a (ScatterOptions v n (Point v n)) #
Lens onto a scatter plot of points.
mkScatterOptions :: (PointLike v n p, Foldable f, Fractional n) => f a -> (a -> p) -> ScatterOptions v n a #
Low level construction of ScatterOptions.
data ScatterPlot (v :: * -> *) n #
A general data type for scatter plots. Allows storing different types of data as well as allowing transforms depending on the data.
Instances
data ScatterOptions (v :: * -> *) n a #
A general data type for scatter plots. Allows storing different types of data as well as allowing transforms depending on the data.
Instances
| HasConnectingLine f (ScatterOptions v n a) | |
Defined in Plots.Types.Scatter Methods connectingLine :: LensLike' f (ScatterOptions v n a) Bool # | |
| d ~ d' => HasScatterOptions f (ScatterOptions v n d) d' | |
Defined in Plots.Types.Scatter Methods gscatterOptions :: LensLike' f (ScatterOptions v n d) (ScatterOptions (V (ScatterOptions v n d)) (N (ScatterOptions v n d)) d') # scatterTransform :: LensLike' f (ScatterOptions v n d) (d' -> Transformation (V (ScatterOptions v n d)) (N (ScatterOptions v n d))) # scatterStyle :: LensLike' f (ScatterOptions v n d) (d' -> Style (V (ScatterOptions v n d)) (N (ScatterOptions v n d))) # scatterPosition :: LensLike' f (ScatterOptions v n d) (d' -> Point (V (ScatterOptions v n d)) (N (ScatterOptions v n d))) # | |
| type N (ScatterOptions v n a) | |
Defined in Plots.Types.Scatter type N (ScatterOptions v n a) = n | |
| type V (ScatterOptions v n a) | |
Defined in Plots.Types.Scatter type V (ScatterOptions v n a) = v | |
class HasConnectingLine (f :: * -> *) a where #
Class of things that have a LensLike for a ScatterPlot 's
connecting line.
Minimal complete definition
Methods
connectingLine :: LensLike' f a Bool #
Instances
| HasConnectingLine f (ScatterPlot v n) | |
Defined in Plots.Types.Scatter Methods connectingLine :: LensLike' f (ScatterPlot v n) Bool # | |
| HasConnectingLine f p => HasConnectingLine f (Plot p b) | |
Defined in Plots.Types.Scatter Methods connectingLine :: LensLike' f (Plot p b) Bool # | |
| (Applicative f, Typeable v, Typeable n) => HasConnectingLine f (StyledPlot b v n) | |
Defined in Plots.Types.Scatter Methods connectingLine :: LensLike' f (StyledPlot b v n) Bool # | |
| HasConnectingLine f (ScatterOptions v n a) | |
Defined in Plots.Types.Scatter Methods connectingLine :: LensLike' f (ScatterOptions v n a) Bool # | |
| (Applicative f, Typeable b, Typeable v, Typeable n) => HasConnectingLine f (DynamicPlot b v n) | |
Defined in Plots.Types.Scatter Methods connectingLine :: LensLike' f (DynamicPlot b v n) Bool # | |
| (Settable f, Typeable (BaseSpace c), Typeable n) => HasConnectingLine f (Axis b c n) | |
Defined in Plots.Types.Scatter Methods connectingLine :: LensLike' f (Axis b c n) Bool # | |
class HasScatterOptions (f :: * -> *) a d where #
Minimal complete definition
Methods
gscatterOptions :: LensLike' f a (ScatterOptions (V a) (N a) d) #
Lens onto the ScatterOptions for a general scatter plot.
scatterTransform :: LensLike' f a (d -> Transformation (V a) (N a)) #
Apply a transform to the markers using the associated data.
scatterStyle :: LensLike' f a (d -> Style (V a) (N a)) #
Apply a style to the markers using the associated data.
scatterPosition :: LensLike' f a (d -> Point (V a) (N a)) #
Change the position of the markers depending on the data.
Instances
type BubbleOptions (v :: * -> *) n = ScatterOptions v n (n, Point v n) #
A bubble plot is a scatter plot using point together with a scalar.
thetaLabel :: Circle c => Lens' (Axis b c n) String #
The label for the radial axis. Shorthand for .rAxis . axisLabelText
thetaAxis :: Circle c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #
Lens onto the radial axis of an Axis.
rMax :: Radial c => Lens' (Axis b c n) (Maybe n) #
The minimum z value for the axis. If the value if Nothing (the
Default), the bounds will be infered by the plots in the axis.
rMin :: R3 c => Lens' (Axis b c n) (Maybe n)
rMin = zAxis . boundMin
The minimum radial value for the axis. If the value if Nothing
(the Default), the bounds will be infered by the plots in the
axis.
rLabel :: Radial c => Lens' (Axis b c n) String #
The label for the radial axis. Shorthand for .rAxis . axisLabelText
rAxis :: Radial c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #
Lens onto the radial axis of an Axis.
zLabel :: R3 c => Lens' (Axis b c n) String #
The label for the z-axis. Shorthand for .zAxis . axisLabelText
zAxis :: R3 c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #
Lens onto the z-axis of an Axis.
yLabel :: R2 c => Lens' (Axis b c n) String #
The label for the y-axis. Shorthand for .yAxis . axisLabelText
yAxis :: R2 c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #
Lens onto the y-axis of an Axis.
xLabel :: R1 c => Lens' (Axis b c n) String #
The label for the x-axis. Shorthand for .xAxis . axisLabelText
xAxis :: R1 c => Lens' (Axis b c n) (SingleAxis b (BaseSpace c) n) #
Lens onto the x-axis of an Axis.
r2Axis :: (TypeableFloat n, Renderable (Text n) b, Renderable (Path V2 n) b) => Axis b V2 n #
The default axis for plots in the V2 coordinate system.
Arguments
| :: (InSpace (BaseSpace v) n p, MonadState (Axis b v n) m, Plotable p b) | |
| => p | the raw plot |
| -> m () | add plot to the |
Simple version of AddPlotable without any changes Plot.
colourBarRange :: Functor f => ((n, n) -> f (n, n)) -> Axis b v n -> f (Axis b v n) #
The range used for the colour bar limits. This is automaticlaly set
when using heatMap or heatMap'
axisSize :: (HasLinearMap c, Num n, Ord n) => Lens' (Axis b c n) (SizeSpec c n) #
The size used for the rendered axis.
plotModifier :: BaseSpace c ~ v => Lens' (Axis b c n) (Endo (StyledPlot b v n)) #
Lens onto the modifier set by finalPlots. This gets applied to
all plots in the axis, just before they are rendered.
finalPlots :: BaseSpace c ~ v => Setter' (Axis b c n) (StyledPlot b v n) #
Setter over the final plot before the axis is rendered.
For example, to make all ScatterPlots in the axis use a
connectingLine (both currently in the axis and ones added later),
you can add
finalPlots.connectingLine.=True
currentPlots :: BaseSpace c ~ v => Traversal' (Axis b c n) (DynamicPlot b v n) #
Traversal over the current plots in the axis.
For example, to make all ScatterPlots currently in the axis use a
connectingLine, you can write
finalPlots.connectingLine.=True
axisPlots :: BaseSpace c ~ v => Lens' (Axis b c n) [DynamicPlot b v n] #
The list of plots currently in the axis.
axes :: (v ~ BaseSpace c, v ~ BaseSpace c') => Lens (Axis b c n) (Axis b c' n) (c (SingleAxis b v n)) (c' (SingleAxis b v n)) #
Lens onto the separate axes of an axis. Allows changing the
coordinate system as long as the BaseSpace is the same.
axes::Lens'(Axisb c n) (c (SingleAxisb v n))
data SingleAxis b (v :: * -> *) n #
Render infomation for a single axis line.
Instances
type family BaseSpace (c :: * -> *) :: * -> * #
This family is used so that we can say (Axis Polar) but use V2 for the underlying diagram.
Instances
| type BaseSpace Complex | |
Defined in Plots.Axis | |
| type BaseSpace V3 | |
Defined in Plots.Axis type BaseSpace V3 = V3 | |
| type BaseSpace V2 | |
Defined in Plots.Axis type BaseSpace V2 = V2 | |
| type BaseSpace Polar | |
Defined in Plots.Axis | |
Axis is the data type that holds all the nessessary information to render
a plot. Common LensLikes used for the axis (see haddock's
instances for a more comprehensive list):
axisStyle- customise theAxisStylelegend- customise theLegendcolourBar- customise theColourBarcurrentPlots- current plots in theAxisfinalPlots- changes to the plots just before renderingaxes- changes to eachSingleAxis
The following LensLikes can be used on the on all the axes by
applying it the to Axis or can be used on a SingleAxis by using
it in combination with a specific axis (like xAxis).
axisLabel- customise theMinorTickstickLabel- customise theTickLabelsminorTicks- customise theMinorTicksmajorTicks- customise theMajorTicksgridLines- customise theGridLinesaxisLine- customise theAxisLineaxisScaling- customise theAxisScaling
Plots are usually added to the axis using specific functions for
that plots ('Plots.Types.Line.linePlot, barPlot).
These functions use addPlotable to add the plot to the axis.
Instances
| (BaseSpace c ~ V2, Settable f, Typeable n) => HasWedge f (Axis b c n) | |
Defined in Plots.Types.Pie Methods pieWedge :: LensLike' f (Axis b c n) (Wedge (N (Axis b c n))) # wedgeOuterRadius :: LensLike' f (Axis b c n) (N (Axis b c n)) # wedgeInnerRadius :: LensLike' f (Axis b c n) (N (Axis b c n)) # wedgeOffset :: LensLike' f (Axis b c n) (N (Axis b c n)) # wedgeWidth :: LensLike' f (Axis b c n) (Angle (N (Axis b c n))) # wedgeDirection :: LensLike' f (Axis b c n) (Direction V2 (N (Axis b c n))) # | |
| (Settable f, Typeable (BaseSpace c), Typeable n) => HasConnectingLine f (Axis b c n) | |
Defined in Plots.Types.Scatter Methods connectingLine :: LensLike' f (Axis b c n) Bool # | |
| (Applicative f, Traversable c) => HasMajorTicks f (Axis b c n) | |
Defined in Plots.Axis Methods majorTicks :: LensLike' f (Axis b c n) (MajorTicks (V (Axis b c n)) (N (Axis b c n))) # majorTicksFunction :: LensLike' f (Axis b c n) ((N (Axis b c n), N (Axis b c n)) -> [N (Axis b c n)]) # majorTicksAlignment :: LensLike' f (Axis b c n) TicksAlignment # majorTicksLength :: LensLike' f (Axis b c n) (N (Axis b c n)) # majorTicksStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # | |
| (Applicative f, Traversable c) => HasMinorTicks f (Axis b c n) | |
Defined in Plots.Axis Methods minorTicks :: LensLike' f (Axis b c n) (MinorTicks (V (Axis b c n)) (N (Axis b c n))) # minorTicksFunction :: LensLike' f (Axis b c n) ([N (Axis b c n)] -> (N (Axis b c n), N (Axis b c n)) -> [N (Axis b c n)]) # minorTicksAlignment :: LensLike' f (Axis b c n) TicksAlignment # minorTicksLength :: LensLike' f (Axis b c n) (N (Axis b c n)) # minorTicksStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # | |
| (Applicative f, Traversable c) => HasTicks f (Axis b c n) | |
| (Applicative f, Traversable c) => HasMajorGridLines f (Axis b c n) | |
Defined in Plots.Axis Methods majorGridLines :: LensLike' f (Axis b c n) (MajorGridLines (V (Axis b c n)) (N (Axis b c n))) # majorGridLinesFunction :: LensLike' f (Axis b c n) (GridLineFunction (N (Axis b c n))) # majorGridLinesStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # | |
| (Applicative f, Traversable c) => HasMinorGridLines f (Axis b c n) | |
Defined in Plots.Axis Methods minorGridLines :: LensLike' f (Axis b c n) (MinorGridLines (V (Axis b c n)) (N (Axis b c n))) # minorGridLinesFunction :: LensLike' f (Axis b c n) (GridLineFunction (N (Axis b c n))) # minorGridLinesStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # | |
| (Applicative f, Traversable c) => HasGridLines f (Axis b c n) | |
| (Applicative f, Traversable c) => HasAxisScaling f (Axis b c n) | |
Defined in Plots.Axis Methods axisScaling :: LensLike' f (Axis b c n) (AxisScaling (N (Axis b c n))) # scaleAspectRatio :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) # scaleMode :: LensLike' f (Axis b c n) ScaleMode # logScale :: LensLike' f (Axis b c n) LogScale # axisExtend :: LensLike' f (Axis b c n) (Extending (N (Axis b c n))) # boundMin :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) # boundMax :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) # renderSize :: LensLike' f (Axis b c n) (Maybe (N (Axis b c n))) # | |
| (Applicative f, Typeable b, Typeable (BaseSpace c), Typeable n, Typeable a) => HasScatterOptions f (Axis b c n) a | |
Defined in Plots.Types.Scatter Methods gscatterOptions :: LensLike' f (Axis b c n) (ScatterOptions (V (Axis b c n)) (N (Axis b c n)) a) # scatterTransform :: LensLike' f (Axis b c n) (a -> Transformation (V (Axis b c n)) (N (Axis b c n))) # scatterStyle :: LensLike' f (Axis b c n) (a -> Style (V (Axis b c n)) (N (Axis b c n))) # scatterPosition :: LensLike' f (Axis b c n) (a -> Point (V (Axis b c n)) (N (Axis b c n))) # | |
| (Applicative f, Traversable c) => HasAxisLabel f (Axis b c n) b | |
Defined in Plots.Axis Methods axisLabel :: LensLike' f (Axis b c n) (AxisLabel b (V (Axis b c n)) (N (Axis b c n))) # axisLabelText :: LensLike' f (Axis b c n) String # axisLabelTextFunction :: LensLike' f (Axis b c n) (TextFunction b (V (Axis b c n)) (N (Axis b c n))) # axisLabelGap :: LensLike' f (Axis b c n) (N (Axis b c n)) # axisLabelStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # axisLabelPosition :: LensLike' f (Axis b c n) AxisLabelPosition # axisLabelPlacement :: LensLike' f (Axis b c n) AxisLabelPosition # | |
| (Applicative f, Traversable c) => HasTickLabels f (Axis b c n) b | |
Defined in Plots.Axis Methods tickLabel :: LensLike' f (Axis b c n) (TickLabels b (V (Axis b c n)) (N (Axis b c n))) # tickLabelTextFunction :: LensLike' f (Axis b c n) (TextFunction b (V (Axis b c n)) (N (Axis b c n))) # tickLabelFunction :: LensLike' f (Axis b c n) ([N (Axis b c n)] -> (N (Axis b c n), N (Axis b c n)) -> [(N (Axis b c n), String)]) # tickLabelStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # tickLabelGap :: LensLike' f (Axis b c n) (N (Axis b c n)) # | |
| Settable f => HasPlotOptions f (Axis b c n) b | |
Defined in Plots.Axis Methods plotOptions :: LensLike' f (Axis b c n) (PlotOptions b (V (Axis b c n)) (N (Axis b c n))) # plotName :: LensLike' f (Axis b c n) Name # clipPlot :: LensLike' f (Axis b c n) Bool # legendEntries :: LensLike' f (Axis b c n) [LegendEntry b (V (Axis b c n)) (N (Axis b c n))] # plotTransform :: LensLike' f (Axis b c n) (Transformation (V (Axis b c n)) (N (Axis b c n))) # plotVisible :: LensLike' f (Axis b c n) Bool # | |
| Settable f => HasPlotStyle f (Axis b c n) b | |
Defined in Plots.Axis Methods plotStyle :: LensLike' f (Axis b c n) (PlotStyle b (V (Axis b c n)) (N (Axis b c n))) # plotColour :: LensLike' f (Axis b c n) (Colour Double) # plotColor :: LensLike' f (Axis b c n) (Colour Double) # lineStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # lineStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) # markerStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # markerStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) # areaStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # areaStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) # textStyle :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # textStyleFunction :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) # plotMarker :: LensLike' f (Axis b c n) (QDiagram b (V (Axis b c n)) (N (Axis b c n)) Any) # plotStyles :: LensLike' f (Axis b c n) (Style (V (Axis b c n)) (N (Axis b c n))) # plotStyleFunctions :: LensLike' f (Axis b c n) (Colour Double -> Style (V (Axis b c n)) (N (Axis b c n))) # | |
| HasColourBar (Axis b v n) b | |
Defined in Plots.Axis Methods colourBar :: Lens' (Axis b v n) (ColourBar b (N (Axis b v n))) # colourBarDraw :: Lens' (Axis b v n) (ColourMap -> QDiagram b V2 (N (Axis b v n)) Any) # colourBarWidth :: Lens' (Axis b v n) (N (Axis b v n)) # colourBarLengthFunction :: Lens' (Axis b v n) (N (Axis b v n) -> N (Axis b v n)) # colourBarGap :: Lens' (Axis b v n) (N (Axis b v n)) # colourBarStyle :: Lens' (Axis b v n) (Style V2 (N (Axis b v n))) # | |
| HasTitle (Axis b c n) b | |
Defined in Plots.Axis | |
| HasLegend (Axis b c n) b | |
Defined in Plots.Axis Methods legend :: Lens' (Axis b c n) (Legend b (N (Axis b c n))) # legendPlacement :: Lens' (Axis b c n) Placement # legendGap :: Lens' (Axis b c n) (N (Axis b c n)) # legendStyle :: Lens' (Axis b c n) (Style V2 (N (Axis b c n))) # legendSpacing :: Lens' (Axis b c n) (N (Axis b c n)) # legendTextWidth :: Lens' (Axis b c n) (N (Axis b c n)) # legendTextFunction :: Lens' (Axis b c n) (String -> QDiagram b V2 (N (Axis b c n)) Any) # legendTextStyle :: Lens' (Axis b c n) (Style V2 (N (Axis b c n))) # legendOrientation :: Lens' (Axis b c n) Orientation # | |
| HasAxisStyle (Axis b v n) b | |
| type N (Axis b v n) | |
Defined in Plots.Axis type N (Axis b v n) = n | |
| type V (Axis b v n) | |
Defined in Plots.Axis | |
| type MainOpts (Axis b V2 n) | |
Defined in Plots.Axis.Render | |
| type MainOpts (Axis b Polar n) | |
Defined in Plots.Axis.Render | |
| type Args (Axis b v n) | |
Defined in Plots.Axis.Render type Args (Axis b v n) = () | |
| type ResultOf (Axis b v n) | |
Defined in Plots.Axis.Render | |
pathColourBar :: (TypeableFloat n, Renderable (Path V2 n) b) => Int -> ColourMap -> QDiagram b V2 n Any #
Construct a colour bar made up of n solid square paths. The final
diagram is 1 by 1, with origin at the middle of the left side. This
can be used as the colourBarDraw function.
gradientColourBar :: (TypeableFloat n, Renderable (Path V2 n) b) => ColourMap -> QDiagram b V2 n Any #
The colour bar generated by a gradient texture. The final diagram
is 1 by 1, with origin at the middle of the left side. This can be
used as the colourBarDraw function.
This may not be supported by all backends.
Arguments
| :: (TypeableFloat n, Renderable (Path V2 n) b) | |
| => ColourBar b n | options for colour bar |
| -> ColourMap | map to use |
| -> (n, n) | bounds of the values on the colour bar |
| -> n | length of the colour bar |
| -> QDiagram b V2 n Any |
Render a colour bar by it's self at a given width. Note this
ignores colourBarGap and colourBarLengthFunction.
Arguments
| :: (TypeableFloat n, Renderable (Path V2 n) b) | |
| => BoundingBox V2 n | bounding box to place against |
| -> ColourBar b n | |
| -> ColourMap | |
| -> (n, n) | |
| -> QDiagram b V2 n Any |
Add a colour bar to an object, using the bounding box for the object.
defColourBar :: (Renderable (Text n) b, Renderable (Path V2 n) b, TypeableFloat n) => ColourBar b n #
The default colour bar.
Options for drawing a colour bar. Note that for an axis, the
ColourMap is stored in the AxisStyle. These options are for
other aspects of the bar, not the colours used.
Instances
class HasColourBar a b | a -> b where #
Minimal complete definition
Methods
colourBar :: Lens' a (ColourBar b (N a)) #
Lens onto the ColourBar.
colourBarDraw :: Lens' a (ColourMap -> QDiagram b V2 (N a) Any) #
How to draw the colour bar. Expects a 1 by 1 box with the
gradient going from left to right, without an outline with origin
in the middle of the left side. See gradientColourBar and
pathColourBar.
The colour map this function recieves it given by
axisColourMap from Plots.Style
Default is gradientColourBar.
colourBarWidth :: Lens' a (N a) #
The width (orthogonal to the colour bar direction) of the colour bar.
Default is 20.
colourBarLengthFunction :: Lens' a (N a -> N a) #
Set the length of the colour bar given the length of the axis the colour bar is aligned to.
colourBarGap :: Lens' a (N a) #
Gap between the axis and the colour bar (if rendered with an axis).
Default is 20.
colourBarStyle :: Lens' a (Style V2 (N a)) #
Style used for the outline of a colour bar.
Instances
| HasColourBar (ColourBar b n) b | |
Defined in Plots.Axis.ColourBar Methods colourBar :: Lens' (ColourBar b n) (ColourBar b (N (ColourBar b n))) # colourBarDraw :: Lens' (ColourBar b n) (ColourMap -> QDiagram b V2 (N (ColourBar b n)) Any) # colourBarWidth :: Lens' (ColourBar b n) (N (ColourBar b n)) # colourBarLengthFunction :: Lens' (ColourBar b n) (N (ColourBar b n) -> N (ColourBar b n)) # colourBarGap :: Lens' (ColourBar b n) (N (ColourBar b n)) # colourBarStyle :: Lens' (ColourBar b n) (Style V2 (N (ColourBar b n))) # | |
| HasColourBar (Axis b v n) b | |
Defined in Plots.Axis Methods colourBar :: Lens' (Axis b v n) (ColourBar b (N (Axis b v n))) # colourBarDraw :: Lens' (Axis b v n) (ColourMap -> QDiagram b V2 (N (Axis b v n)) Any) # colourBarWidth :: Lens' (Axis b v n) (N (Axis b v n)) # colourBarLengthFunction :: Lens' (Axis b v n) (N (Axis b v n) -> N (Axis b v n)) # colourBarGap :: Lens' (Axis b v n) (N (Axis b v n)) # colourBarStyle :: Lens' (Axis b v n) (Style V2 (N (Axis b v n))) # | |
Arguments
| :: (RealFrac n, Floating n) | |
| => [n] | Allowed numbers (up to powers of 10) |
| -> n | desired number of ticks |
| -> (n, n) | bounds |
| -> [n] | tick positions |
Choose ticks whose step size is a multiple of 10 of the allowed numbers and tries to match the number of desired ticks.
Note that the resulting tick positions may go out of the range of the bounds. This is so the minor ticks can be chosen correctly if a tick doesn't end exactly on a bound. When we render, we ignore all ticks outside the bounds.
Arguments
| :: Fractional n | |
| => Int | Number of minor ticks between each major tick |
| -> [n] | Positions of major ticks |
| -> (n, n) | Bounds |
| -> [n] | Minor tick positions |
Place n linear spaced ticks between each major tick.
logMajorTicks :: (RealFrac n, Floating n) => n -> (n, n) -> [n] #
Place n ticks at powers of 10 on the axis.
linearMajorTicks :: (RealFrac n, Floating n) => n -> (n, n) -> [n] #
Ticks whose value ends in 1, 0.5, 0.25, 0.2 (*10^n).
minorTickPositions :: (HasMinorTicks f a, Settable f) => LensLike' f a [N a] #
Setter over the final positions the major ticks. This is not as
general as minorTicksFunction because you don't have access to
the bounds but it can be useful when you know exactly what ticks
you want to add or modify existing tick positions.
majorTickPositions :: (HasMajorTicks f a, Settable f) => LensLike' f a [N a] #
Setter over the final positions the major ticks. This is not as
general as majorTicksFunction because you don't have access to
the bounds but it can be useful when you know exactly what ticks
you want to add or modify existing tick positions.
hideTicks :: HasTicks Identity a => a -> a #
Hides the Minor ticks when trying to render something. This can
be used on multiple types:
hideTicks::Axisb c n ->Axisb c nhideTicks::SingleAxisb v n ->SingleAxisb v nhideTicks::Ticksv n ->Ticksv nhideTicks::MinorTicksv n ->MinorTicksv n
ticksVisible :: (HasTicks f a, Applicative f) => LensLike' f a Bool #
Traversal over the visibility of both major and minor ticks.
ticksStyle :: (HasTicks f a, Applicative f) => LensLike' f a (Style (V a) (N a)) #
Traversal over both major and minor tick styles.
ticksAlign :: (HasTicks f a, Applicative f) => LensLike' f a TicksAlignment #
Traversal over both major and minor tick alignment.
outsideTicks :: TicksAlignment #
Align the ticks to be outside a box axis.
insideTicks :: TicksAlignment #
Align the ticks to be inside a box axis.
centerTicks :: TicksAlignment #
Synonym for centreTicks.
centreTicks :: TicksAlignment #
Set the tick to be in the centre of the axis with total length of the corresponding tick length.
Set the tick type depending on the axis line position. centreTick
for middleAxis, insideTick for everything else.
data TicksAlignment #
Set the portion of the tick above and below the axis.
Instances
| Eq TicksAlignment | |
Defined in Plots.Axis.Ticks Methods (==) :: TicksAlignment -> TicksAlignment -> Bool # (/=) :: TicksAlignment -> TicksAlignment -> Bool # | |
| Show TicksAlignment | |
Defined in Plots.Axis.Ticks Methods showsPrec :: Int -> TicksAlignment -> ShowS # show :: TicksAlignment -> String # showList :: [TicksAlignment] -> ShowS # | |
data MajorTicks (v :: * -> *) n #
The big ticks on the axis line.
Instances
| HasMajorTicks f (MajorTicks v n) | |
Defined in Plots.Axis.Ticks Methods majorTicks :: LensLike' f (MajorTicks v n) (MajorTicks (V (MajorTicks v n)) (N (MajorTicks v n))) # majorTicksFunction :: LensLike' f (MajorTicks v n) ((N (MajorTicks v n), N (MajorTicks v n)) -> [N (MajorTicks v n)]) # majorTicksAlignment :: LensLike' f (MajorTicks v n) TicksAlignment # majorTicksLength :: LensLike' f (MajorTicks v n) (N (MajorTicks v n)) # majorTicksStyle :: LensLike' f (MajorTicks v n) (Style (V (MajorTicks v n)) (N (MajorTicks v n))) # | |
| TypeableFloat n => Default (MajorTicks v n) | |
Defined in Plots.Axis.Ticks Methods def :: MajorTicks v n # | |
| HasVisibility (MajorTicks v n) | |
Defined in Plots.Axis.Ticks | |
| type N (MajorTicks v n) | |
Defined in Plots.Axis.Ticks type N (MajorTicks v n) = n | |
| type V (MajorTicks v n) | |
Defined in Plots.Axis.Ticks type V (MajorTicks v n) = v | |
class HasMajorTicks (f :: * -> *) a where #
Class of things that have a MajorTicks.
Minimal complete definition
Methods
majorTicks :: LensLike' f a (MajorTicks (V a) (N a)) #
Lens onto the MajorTicks of something.
majorTicksFunction :: LensLike' f a ((N a, N a) -> [N a]) #
The function used to place ticks for this axis, given the bounds
of the axis. The result of these major ticks are also used as
guides for MinorTicks, MajorGridLines and MinorGridLines.
Default is .linearMinorTicks 5
majorTicksAlignment :: LensLike' f a TicksAlignment #
Alignment of the major ticks. Choose between autoTicks
(default), centreTicks, insideTicks or outsideTicks.
majorTicksLength :: LensLike' f a (N a) #
The total length the major ticks.
Default is 7.
majorTicksStyle :: LensLike' f a (Style (V a) (N a)) #
The style used to render the major ticks.
Default is (subject to change).lwO 0.6 mempty
Instances
data MinorTicks (v :: * -> *) n #
The small ticks on the axis line.
Instances
| HasMinorTicks f (MinorTicks v n) | |
Defined in Plots.Axis.Ticks Methods minorTicks :: LensLike' f (MinorTicks v n) (MinorTicks (V (MinorTicks v n)) (N (MinorTicks v n))) # minorTicksFunction :: LensLike' f (MinorTicks v n) ([N (MinorTicks v n)] -> (N (MinorTicks v n), N (MinorTicks v n)) -> [N (MinorTicks v n)]) # minorTicksAlignment :: LensLike' f (MinorTicks v n) TicksAlignment # minorTicksLength :: LensLike' f (MinorTicks v n) (N (MinorTicks v n)) # minorTicksStyle :: LensLike' f (MinorTicks v n) (Style (V (MinorTicks v n)) (N (MinorTicks v n))) # | |
| TypeableFloat n => Default (MinorTicks v n) | |
Defined in Plots.Axis.Ticks Methods def :: MinorTicks v n # | |
| HasVisibility (MinorTicks v n) | |
Defined in Plots.Axis.Ticks | |
| type N (MinorTicks v n) | |
Defined in Plots.Axis.Ticks type N (MinorTicks v n) = n | |
| type V (MinorTicks v n) | |
Defined in Plots.Axis.Ticks type V (MinorTicks v n) = v | |
class HasMinorTicks (f :: * -> *) a where #
Class of things that have a single MinorTicks.
Minimal complete definition
Methods
minorTicks :: LensLike' f a (MinorTicks (V a) (N a)) #
Lens onto the MinorTicks of something.
minorTicksFunction :: LensLike' f a ([N a] -> (N a, N a) -> [N a]) #
The function used to place ticks for this axis, given the result
of majorTicksFunction and the bounds of the axis.
Default is .linearMinorTicks 3
minorTicksAlignment :: LensLike' f a TicksAlignment #
Alignment of the minor ticks. Choose between autoTicks
(default), centreTicks, insideTicks or outsideTicks.
minorTicksLength :: LensLike' f a (N a) #
The total length the minor ticks.
Default is 3.
minorTicksStyle :: LensLike' f a (Style (V a) (N a)) #
The style used to render the minor ticks.
Default is (subject to change).lwO 0.4 mempty
Instances
Both MajorTicks and MinorTicks together.
Instances
class (HasMinorTicks f a, HasMajorTicks f a) => HasTicks (f :: * -> *) a where #
Class of things with both MajorTicks and MinorTicks.
Minimal complete definition
Instances
| Functor f => HasTicks f (Ticks v n) | |
| Functor f => HasTicks f (SingleAxis b v n) | |
Defined in Plots.Axis Methods bothTicks :: LensLike' f (SingleAxis b v n) (Ticks (V (SingleAxis b v n)) (N (SingleAxis b v n))) # | |
| (Applicative f, Traversable c) => HasTicks f (Axis b c n) | |
gridLinesStyle :: (HasGridLines f a, Applicative f) => LensLike' f a (Style (V a) (N a)) #
Traversal over both the major and minor grid styles. This can be used at seversal levels in the Axis:
showGridLines :: (HasGridLines Identity a, MonadState a m) => m () #
Show both major and minor grid lines.
showGridLines::Axisb c n ->Axisb c nshowGridLines::SingleAxisb c n ->SingleAxisb c nshowGridLines::GridLinesb c n ->GirdLinesb c n
hideGridLines :: (HasGridLines Identity a, MonadState a m) => m () #
Hide both major and minor grid lines.
hideGridLines::Axisb c n ->Axisb c nhideGridLines::SingleAxisb c n ->SingleAxisb c nhideGridLines::GridLinesb c n ->GirdLinesb c n
gridLinesVisible :: (HasGridLines f a, Applicative f) => LensLike' f a Bool #
Traversal over both the major and minor grid styles.
gridLinesVisible::Traversal'(Axisb c n)BoolgridLinesVisible::Traversal'(SingleAxisb v n)BoolgridLinesVisible::Traversal'(GridLinesv n)Bool
emptyGridLineFunction :: GridLineFunction n #
The GridLineFunction such that no grid lines appear.
See hideGridLines, majorGridLineVisible or
minorGridLineVisible if you just want to hide the grid lines.
onTicksGridLineFunction :: GridLineFunction n #
Place grid lines at the same position as the respective ticks. This
is the Default.
type GridLineFunction n = [n] -> (n, n) -> [n] #
A grid line function takes the positions of the respective ticks (minor ticks for minor grid lines, major ticks for major grid lines) and the bounds of the axis and returns the positions of the grid lines.
These functions are used in conjuction with majorGridLineFunction
and minorGridLineFunction to control how the lines are drawn.
data MajorGridLines (v :: * -> *) n #
Instances
| HasMajorGridLines f (MajorGridLines v n) | |
Defined in Plots.Axis.Grid Methods majorGridLines :: LensLike' f (MajorGridLines v n) (MajorGridLines (V (MajorGridLines v n)) (N (MajorGridLines v n))) # majorGridLinesFunction :: LensLike' f (MajorGridLines v n) (GridLineFunction (N (MajorGridLines v n))) # majorGridLinesStyle :: LensLike' f (MajorGridLines v n) (Style (V (MajorGridLines v n)) (N (MajorGridLines v n))) # | |
| (Typeable n, Floating n) => Default (MajorGridLines v n) | |
Defined in Plots.Axis.Grid Methods def :: MajorGridLines v n # | |
| HasVisibility (MajorGridLines v n) | |
Defined in Plots.Axis.Grid | |
| Typeable n => HasStyle (MajorGridLines v n) | |
Defined in Plots.Axis.Grid Methods applyStyle :: Style (V (MajorGridLines v n)) (N (MajorGridLines v n)) -> MajorGridLines v n -> MajorGridLines v n | |
| type N (MajorGridLines v n) | |
Defined in Plots.Axis.Grid type N (MajorGridLines v n) = n | |
| type V (MajorGridLines v n) | |
Defined in Plots.Axis.Grid type V (MajorGridLines v n) = v | |
class HasMajorGridLines (f :: * -> *) a where #
Minimal complete definition
Methods
majorGridLines :: LensLike' f a (MajorGridLines (V a) (N a)) #
The options for how to draw the grid lines. This can be used on various levels of the axis:
majorGridLines::Traversal'(Axisb c n) (GridLines(BaseSpacec) n)majorGridLines::Lens'(SingleAxisb v n) (GridLinesv n)majorGridLines::Lens'(GridLinesv n) (GridLinesv n)
majorGridLinesFunction :: LensLike' f a (GridLineFunction (N a)) #
The function to calculate location of the major grid lines given location of the major ticks and bounds.
majorGridLinesStyle :: LensLike' f a (Style (V a) (N a)) #
The style applied to the major grid lines.
Instances
data MinorGridLines (v :: * -> *) n #
Instances
| HasMinorGridLines f (MinorGridLines v n) | |
Defined in Plots.Axis.Grid Methods minorGridLines :: LensLike' f (MinorGridLines v n) (MinorGridLines (V (MinorGridLines v n)) (N (MinorGridLines v n))) # minorGridLinesFunction :: LensLike' f (MinorGridLines v n) (GridLineFunction (N (MinorGridLines v n))) # minorGridLinesStyle :: LensLike' f (MinorGridLines v n) (Style (V (MinorGridLines v n)) (N (MinorGridLines v n))) # | |
| (Typeable n, Floating n) => Default (MinorGridLines v n) | |
Defined in Plots.Axis.Grid Methods def :: MinorGridLines v n # | |
| HasVisibility (MinorGridLines v n) | Hidden by default. |
Defined in Plots.Axis.Grid | |
| Typeable n => HasStyle (MinorGridLines v n) | |
Defined in Plots.Axis.Grid Methods applyStyle :: Style (V (MinorGridLines v n)) (N (MinorGridLines v n)) -> MinorGridLines v n -> MinorGridLines v n | |
| type N (MinorGridLines v n) | |
Defined in Plots.Axis.Grid type N (MinorGridLines v n) = n | |
| type V (MinorGridLines v n) | |
Defined in Plots.Axis.Grid type V (MinorGridLines v n) = v | |
class HasMinorGridLines (f :: * -> *) a where #
Minimal complete definition
Methods
minorGridLines :: LensLike' f a (MinorGridLines (V a) (N a)) #
The options for how to draw the grid lines. This can be used on various levels of the axis:
minorGridLines::Traversal'(Axisb c n) (GridLines(BaseSpacec) n)minorGridLines::Lens'(SingleAxisb v n) (GridLinesv n)minorGridLines::Lens'(GridLinesv n) (GridLinesv n)
minorGridLinesFunction :: LensLike' f a (GridLineFunction (N a)) #
The function to calculate location of the minor grid lines given location of the minor ticks and bounds.
minorGridLinesStyle :: LensLike' f a (Style (V a) (N a)) #
The style applied to the minor grid lines.
Instances
data GridLines (v :: * -> *) n #
Type holding infomation about both major and minor grid lines.
Instances
class (HasMinorGridLines f a, HasMajorGridLines f a) => HasGridLines (f :: * -> *) a where #
Minimal complete definition
Instances
| Functor f => HasGridLines f (GridLines v n) | |
| Functor f => HasGridLines f (SingleAxis b v n) | |
Defined in Plots.Axis Methods gridLines :: LensLike' f (SingleAxis b v n) (GridLines (V (SingleAxis b v n)) (N (SingleAxis b v n))) # | |
| (Applicative f, Traversable c) => HasGridLines f (Axis b c n) | |
atMajorTicks :: (n -> String) -> [n] -> (n, n) -> [(n, String)] #
Make a TickLabelFunction by specifying how to draw a single label
from a position on the axis.
tickLabelPositions :: (HasTickLabels f a b, Settable f) => LensLike' f a [(N a, String)] #
Setter over the final positions the major ticks. This is not as
general as minorTicksFunction because you don't have access to
the bounds but it can be useful when you know exactly what ticks
you want to add or modify existing tick positions.
type TextFunction b (v :: * -> *) n = TextAlignment n -> String -> QDiagram b v n Any #
Function to render the axis label from a string. This is very basic now and will be replace by a more sophisticated system.
data AxisLabelPosition #
The position of the AxisLabel along the axis.
Constructors
| MiddleAxisLabel | |
| LowerAxisLabel | |
| UpperAxisLabel |
data AxisLabelPlacement #
Whether the AxisLabel should be inside or ouside the axis.
Constructors
| InsideAxisLabel | |
| OutsideAxisLabel |
data AxisLabel b (v :: * -> *) n #
Instances
class HasAxisLabel (f :: * -> *) a b | a -> b where #
Minimal complete definition
Methods
axisLabel :: LensLike' f a (AxisLabel b (V a) (N a)) #
The options for the label of the axis. This can be used on various levels of the axis:
axisLabel::Traversal'(Axisb c n) (AxisLabel(BaseSpacec) n)axisLabel::Lens'(SingleAxisb v n) (AxisLabelv n)axisLabel::Lens'(AxisLabelv n) (AxisLabelv n)
axisLabelText :: LensLike' f a String #
The text to use when labeling the axis.
axisLabelTextFunction :: LensLike' f a (TextFunction b (V a) (N a)) #
The TextFunction to render the text of the axis label.
axisLabelGap :: LensLike' f a (N a) #
The gap between the axis and the labels, in the direction
corresponding to the axisLabelPosition.
axisLabelStyle :: LensLike' f a (Style (V a) (N a)) #
The Style to use on the rendered text.
axisLabelPosition :: LensLike' f a AxisLabelPosition #
The position the label will be placed parallel the axis.
axisLabelPlacement :: LensLike' f a AxisLabelPosition #
Whether the axis label should be placed inside or outside the axis.
Instances
data TickLabels b (v :: * -> *) n #
Instances
class HasTickLabels (f :: * -> *) a b | a -> b where #
Minimal complete definition
Methods
tickLabel :: LensLike' f a (TickLabels b (V a) (N a)) #
The options for the label of ticks. This can be used on various levels of the axis:
tickLabel::Traversal'(Tickb c n) (TickLabels(BaseSpacec) n)tickLabel::Lens'(SingleAxisb v n) (TickLabelsv n)tickLabel::Lens'(TickLabelv n) (TickLabelsv n)
tickLabelTextFunction :: LensLike' f a (TextFunction b (V a) (N a)) #
The TextFunction to render the text.
Default is mkText.
tickLabelFunction :: LensLike' f a ([N a] -> (N a, N a) -> [(N a, String)]) #
Tick labels functions are used to draw the tick labels. They has access to the major ticks and the current bounds. Returns the position of the tick and label to use at that position.
Default is atMajorTicks floatShow
tickLabelStyle :: LensLike' f a (Style (V a) (N a)) #
The Style to use on the rendered text.
Default is .fontSize (output 11)
tickLabelGap :: LensLike' f a (N a) #
The gap between the axis and the tick labels.
Default is 12.
Instances
drawTitle :: TypeableFloat n => BoundingBox V2 n -> Title b V2 n -> QDiagram b V2 n Any #
Render the title and place it around the bounding box.
data Title b (v :: * -> *) n #
Instances
| (Renderable (Text n) b, TypeableFloat n) => Default (Title b V2 n) | |
Defined in Plots.Axis.Title | |
| HasVisibility (Title b v n) | |
| HasGap (Title b v n) | |
| HasPlacement (Title b v n) | |
| HasTitle (Title b v n) b | |
| type N (Title b v n) | |
Defined in Plots.Axis.Title type N (Title b v n) = n | |
| type V (Title b v n) | |
Defined in Plots.Axis.Title type V (Title b v n) = v | |
class HasTitle a b | a -> b where #
Minimal complete definition
Methods
title :: Lens' a (Title b (V a) (N a)) #
The text used for the title. If the string is empty, no title is drawn.
Default is ""
titleStyle :: Lens' a (Style (V a) (N a)) #
The style applied to the title.
Default is mempty.
titlePlacement :: Lens' a Placement #
The placement of the title against the axis.
Default is mempty.
The gap between the axis and the title.
Default is mempty.
Instances
| HasTitle (Axis b c n) b | |
Defined in Plots.Axis | |
| HasTitle (Title b v n) b | |
Arguments
| :: (TypeableFloat n, Renderable (Path V2 n) b) | |
| => BoundingBox V2 n | bounding box to place legend against |
| -> [(QDiagram b V2 n Any, String)] | diagram pictures along with their key |
| -> Legend b n | options for drawing the legend |
| -> QDiagram b V2 n Any | rendered legend |
Draw a legend to the bounding box using the legend entries and legend options.
class HasLegend a b | a -> b where #
Minimal complete definition
Methods
legend :: Lens' a (Legend b (N a)) #
Lens onto the Legend of something.
legendPlacement :: Lens' a Placement #
The gap between the legend and the axis.
legendStyle :: Lens' a (Style V2 (N a)) #
The style applied to the surronding box of the legend.
legendSpacing :: Lens' a (N a) #
The spacing between entries in the legend.
legendTextWidth :: Lens' a (N a) #
The space given for the text in the legend.
legendTextFunction :: Lens' a (String -> QDiagram b V2 (N a) Any) #
The function to generate the legend text.
legendTextStyle :: Lens' a (Style V2 (N a)) #
The style applied to the legend text.
legendOrientation :: Lens' a Orientation #
The way the legend entries are listed. (This will likely be replaced by a grid-like system)
Instances
Arguments
| :: Ord n | |
| => [StyledPlot b v n] | |
| -> [(QDiagram b v n Any, String)] | [(legend pic, legend text)] |
Render a list of legend entries, in order.
Arguments
| :: StyledPlot b v n | |
| -> [(n, QDiagram b v n Any, String)] | (z-order, legend pic, legend text) |
Get the legend rendered entries from a single styled plot. The
resulting entries are in no particular order. See also
styledPlotLegends.
renderStyledPlot :: TypeableFloat n => AxisSpec V2 n -> StyledPlot b V2 n -> QDiagram b V2 n Any #
Render a StyledPlot given an and AxisSpec.
styleDynamic :: PlotStyle b v n -> DynamicPlot b v n -> StyledPlot b v n #
Give a DynamicPlot a concrete PlotStyle.
styledPlot :: Typeable p => Traversal' (StyledPlot b (V p) (N p)) p #
Traversal over a raw plot of a styled plot. The type of the plot must match for the traversal to be succesful.
dynamicPlotMods :: Functor f => (PlotMods b v n -> f (PlotMods b v n)) -> DynamicPlot b v n -> f (DynamicPlot b v n) #
The modifications to the PlotOptions and PlotStyle in a DynamicPlot.
dynamicPlot :: (Typeable p, Typeable b) => Traversal' (DynamicPlot b (V p) (N p)) (Plot p b) #
Traversal over the dynamic plot without the Plotable constraint
_DynamicPlot has.
_DynamicPlot :: (Plotable p b, Typeable b) => Prism' (DynamicPlot b (V p) (N p)) (Plot p b) #
Prism for a DynamicPlot.
plotMods :: Functor f => (PlotMods b (V p) (N p) -> f (PlotMods b (V p) (N p))) -> Plot p b -> f (Plot p b) #
The modifications to the PlotOptions and PlotStyle in a Plot.
display :: (MonadState s m, HasVisibility a) => ASetter' s a -> m () #
hide :: (MonadState s m, HasVisibility a) => ASetter' s a -> m () #
specPoint :: (Applicative v, Additive v, Floating n) => AxisSpec v n -> Point v n -> Point v n #
Apply log scaling and the transform to a point.
scaleNum :: Floating n => (n, n) -> LogScale -> n -> n #
Scale a number by log10-ing it and linearly scaling it so it's within the same range.
specTrans :: Functor f => (Transformation v n -> f (Transformation v n)) -> AxisSpec v n -> f (AxisSpec v n) #
specBounds :: Functor f => (v (n, n) -> f (v (n, n))) -> AxisSpec v n -> f (AxisSpec v n) #
class (Typeable p, Enveloped p) => Plotable p b where #
Class defining how plots should be rendered.
Minimal complete definition
Methods
renderPlotable :: InSpace v n p => AxisSpec v n -> PlotStyle b v n -> p -> QDiagram b v n Any #
defLegendPic :: InSpace v n p => PlotStyle b v n -> p -> QDiagram b v n Any #
The default legend picture when the LegendPic is
DefaultLegendPic.
Instances
| (TypeableFloat n, Renderable (Path V2 n) b) => Plotable (BarPlot n) b | |
Defined in Plots.Types.Bar | |
| (TypeableFloat n, Renderable (Path V2 n) b) => Plotable (HistogramPlot n) b | |
Defined in Plots.Types.Histogram Methods renderPlotable :: InSpace v n0 (HistogramPlot n) => AxisSpec v n0 -> PlotStyle b v n0 -> HistogramPlot n -> QDiagram b v n0 Any # defLegendPic :: InSpace v n0 (HistogramPlot n) => PlotStyle b v n0 -> HistogramPlot n -> QDiagram b v n0 Any # | |
| (TypeableFloat n, Renderable (Path V2 n) b) => Plotable (Wedge n) b | |
Defined in Plots.Types.Pie | |
| (TypeableFloat n, Renderable (Path V2 n) b) => Plotable (Path V2 n) b | |
Defined in Plots.Types Methods renderPlotable :: InSpace v n0 (Path V2 n) => AxisSpec v n0 -> PlotStyle b v n0 -> Path V2 n -> QDiagram b v n0 Any # defLegendPic :: InSpace v n0 (Path V2 n) => PlotStyle b v n0 -> Path V2 n -> QDiagram b v n0 Any # | |
| (Typeable b, TypeableFloat n, Renderable (Path V2 n) b) => Plotable (HeatMap b n) b | |
Defined in Plots.Types.HeatMap | |
| (TypeableFloat n, Renderable (Path V2 n) b) => Plotable (ScatterPlot V2 n) b | |
Defined in Plots.Types.Scatter Methods renderPlotable :: InSpace v n0 (ScatterPlot V2 n) => AxisSpec v n0 -> PlotStyle b v n0 -> ScatterPlot V2 n -> QDiagram b v n0 Any # defLegendPic :: InSpace v n0 (ScatterPlot V2 n) => PlotStyle b v n0 -> ScatterPlot V2 n -> QDiagram b v n0 Any # | |
| (Typeable b, Typeable v, Metric v, Typeable n, OrderedField n) => Plotable (QDiagram b v n Any) b | |
Defined in Plots.Types | |
class HasVisibility a where #
Class of objects that can be hidden.
Minimal complete definition
Instances
| HasVisibility (ColourBar b n) | |
| HasVisibility (MajorTicks v n) | |
Defined in Plots.Axis.Ticks | |
| HasVisibility (MinorTicks v n) | |
Defined in Plots.Axis.Ticks | |
| HasVisibility (MajorGridLines v n) | |
Defined in Plots.Axis.Grid | |
| HasVisibility (MinorGridLines v n) | Hidden by default. |
Defined in Plots.Axis.Grid | |
| HasVisibility (AxisLine v n) | |
| HasVisibility (Legend b n) | |
| HasVisibility (Plot p b) | |
| HasVisibility (SingleAxis b v n) | |
Defined in Plots.Axis | |
| HasVisibility (AxisLabel b v n) | |
| HasVisibility (TickLabels b v n) | |
Defined in Plots.Axis.Labels | |
| HasVisibility (Title b v n) | |
| HasVisibility (PlotMods b v n) | |
| HasVisibility (DynamicPlot b v n) | |
Defined in Plots.Types | |
| HasVisibility (StyledPlot b v n) | |
Defined in Plots.Types | |
| HasVisibility (PlotOptions b v n) | |
Defined in Plots.Types | |
data PlotMods b (v :: * -> *) n #
A PlotOptions with modifications to a PlotStyle.
Instances
data DynamicPlot b (v :: * -> *) n where #
A wrapped up Plot, used to store plots in an Axis.
Constructors
| DynamicPlot :: DynamicPlot b v n |
Instances
data StyledPlot b (v :: * -> *) n #
A DynamicPlot with a concrete style. This is suitable for being
rendered with renderStyledPlot and get extract the legend entries
with styledPlotLegend.
You can make a StyledPlot with styleDynamic
Instances
addLegendEntry :: (HasPlotOptions Identity a b, MonadState a m) => LegendEntry b (V a) (N a) -> m () #
Add a LegendEntry to something with PlotOptions. Here are some
typical examples:
addLegendEntry::LegendEntryb v n ->State(Plot(ScatterPlotv n) b) ()addLegendEntry::LegendEntryb v n ->State(DynamicPlotb v n) ()
If you only care about the name of the legend, use key.
key :: (HasPlotOptions Identity a b, MonadState a m, Num (N a)) => String -> m () #
Add a LegendEntry to something with PlotOptions using the
String as the legendText and a DefaultLegendPic. Here are
some typical examples:
key::String->State(Plot(ScatterPlotv n) b) ()key::String->State(DynamicPlotb v n) ()key::String->State(PlotModsb v n) ()
If you only care about the name of the legend, use key.
mkLegendEntry :: Num n => String -> LegendEntry b v n #
Make a legend entry with a default legendPicture and
legendPrecedence 0 using the string as the legendText.
legendPrecedence :: Functor f => (n -> f n) -> LegendEntry b v n -> f (LegendEntry b v n) #
The order in which the legend entries are rendered. If precedence are equal, they entries are put in the order they are added to the axis.
Default is 0.
legendText :: Functor f => (String -> f String) -> LegendEntry b v n -> f (LegendEntry b v n) #
The text used in the legend entry.
legendPicture :: Functor f => (LegendPic b v n -> f (LegendPic b v n)) -> LegendEntry b v n -> f (LegendEntry b v n) #
The picture used in the legend entry.
placeAgainst :: (InSpace V2 n a, SameSpace a b, Enveloped a, HasOrigin b, Alignable b) => a -> Placement -> n -> b -> b #
A tool for aligned one object to another. Positions b around the
bounding box of a by translating b.
rightBelow :: Placement #
rightAbove :: Placement #
leftBottom :: Placement #
bottomLeft :: Placement #
vertical :: HasOrientation a => Lens' a Bool #
Lens onto whether an object's orientation is vertical.
horizontal :: HasOrientation a => Lens' a Bool #
Lens onto whether an object's orientation is horizontal.
orient :: HasOrientation o => o -> a -> a -> a #
Pick the first a if the object has Horizontal orientation and
the second a if the object has a Vertical orientation.
data Orientation #
Constructors
| Horizontal | |
| Vertical |
Instances
| Eq Orientation | |
Defined in Plots.Types | |
| Ord Orientation | |
Defined in Plots.Types Methods compare :: Orientation -> Orientation -> Ordering # (<) :: Orientation -> Orientation -> Bool # (<=) :: Orientation -> Orientation -> Bool # (>) :: Orientation -> Orientation -> Bool # (>=) :: Orientation -> Orientation -> Bool # max :: Orientation -> Orientation -> Orientation # min :: Orientation -> Orientation -> Orientation # | |
| Show Orientation | |
Defined in Plots.Types Methods showsPrec :: Int -> Orientation -> ShowS # show :: Orientation -> String # showList :: [Orientation] -> ShowS # | |
| HasOrientation Orientation | |
Defined in Plots.Types Methods | |
class HasOrientation a where #
Class of things that have an orientation.
Minimal complete definition
Instances
Minimal complete definition
Instances
| HasGap (ColourBar b n) | |
| HasGap (Legend b n) | |
| HasGap (AxisLabel b v n) | |
| HasGap (TickLabels b v n) | |
Defined in Plots.Axis.Labels Methods gap :: Lens' (TickLabels b v n) (N (TickLabels b v n)) # | |
| HasGap (Title b v n) | |
A Position is a point on an axis together with an anchor and a
direction for the gap.
Constructors
| Placement | |
Instances
| Eq Placement | |
| Ord Placement | |
| Read Placement | |
| Show Placement | |
| HasPlacement Placement | |
class HasPlacement a where #
Minimal complete definition
Methods
placement :: Lens' a Placement #
placementAt :: Lens' a (V2 Rational) #
The position relative to the axis. V2 0 0 corresponds to the
bottom left corner, V2 1 1 is the top right corner.
placementAnchor :: Lens' a (V2 Rational) #
The anchor used for the object being positioned. V2 0 0
corresponds to the bottom left corner, V2 1 1 is the top right
corner.
gapDirection :: Lens' a (Direction V2 Rational) #
The direction to extend the gap when positioning.
Instances
| HasPlacement Placement | |
| HasPlacement (ColourBar b n) | |
| HasPlacement (Legend b n) | |
| HasPlacement (Title b v n) | |
data LegendPic b (v :: * -> *) n #
Type allowing use of the default legend picture (depending on the
plot) or a custom legend picture with access to the PlotStyle.
Constructors
| DefaultLegendPic | |
| CustomLegendPic (PlotStyle b v n -> QDiagram b v n Any) |
data LegendEntry b (v :: * -> *) n #
Data type for holding a legend entry.
Instances
| type N (LegendEntry b v n) | |
Defined in Plots.Types type N (LegendEntry b v n) = n | |
| type V (LegendEntry b v n) | |
Defined in Plots.Types type V (LegendEntry b v n) = v | |
data PlotOptions b (v :: * -> *) n #
Data type for holding information all plots must contain.
Instances
| HasPlotOptions f (PlotOptions b v n) b | |
Defined in Plots.Types Methods plotOptions :: LensLike' f (PlotOptions b v n) (PlotOptions b (V (PlotOptions b v n)) (N (PlotOptions b v n))) # plotName :: LensLike' f (PlotOptions b v n) Name # clipPlot :: LensLike' f (PlotOptions b v n) Bool # legendEntries :: LensLike' f (PlotOptions b v n) [LegendEntry b (V (PlotOptions b v n)) (N (PlotOptions b v n))] # plotTransform :: LensLike' f (PlotOptions b v n) (Transformation (V (PlotOptions b v n)) (N (PlotOptions b v n))) # plotVisible :: LensLike' f (PlotOptions b v n) Bool # | |
| (Additive v, Num n) => Default (PlotOptions b v n) | |
Defined in Plots.Types Methods def :: PlotOptions b v n # | |
| HasVisibility (PlotOptions b v n) | |
Defined in Plots.Types | |
| (Additive v, Num n) => HasOrigin (PlotOptions b v n) | Move origin by applying to |
Defined in Plots.Types Methods moveOriginTo :: Point (V (PlotOptions b v n)) (N (PlotOptions b v n)) -> PlotOptions b v n -> PlotOptions b v n | |
| Qualifiable (PlotOptions b v n) | |
Defined in Plots.Types Methods (.>>) :: IsName a => a -> PlotOptions b v n -> PlotOptions b v n | |
| (HasLinearMap v, Num n) => Transformable (PlotOptions b v n) | |
Defined in Plots.Types Methods transform :: Transformation (V (PlotOptions b v n)) (N (PlotOptions b v n)) -> PlotOptions b v n -> PlotOptions b v n | |
| type N (PlotOptions b v n) | |
Defined in Plots.Types type N (PlotOptions b v n) = n | |
| type V (PlotOptions b v n) | |
Defined in Plots.Types type V (PlotOptions b v n) = v | |
class HasPlotOptions (f :: * -> *) a b | a -> b where #
Class of things that have PlotOptions.
Minimal complete definition
Methods
plotOptions :: LensLike' f a (PlotOptions b (V a) (N a)) #
Lens onto the PlotOptions.
plotName :: LensLike' f a Name #
The Name applied to the plot. This gives a way to reference a
specific plot in a rendered axis.
clipPlot :: LensLike' f a Bool #
legendEntries :: LensLike' f a [LegendEntry b (V a) (N a)] #
plotTransform :: LensLike' f a (Transformation (V a) (N a)) #
plotVisible :: LensLike' f a Bool #
Instances
data AxisSpec (v :: * -> *) n #
Constructors
| AxisSpec | |
Fields
| |
Instances
| type N (AxisSpec v n) | |
Defined in Plots.Types type N (AxisSpec v n) = n | |
| type V (AxisSpec v n) | |
Defined in Plots.Types type V (AxisSpec v n) = v | |
(&~~) :: Monad m => s -> StateT s m a -> m s infix 1 #
Similar to '(&~)' but works with StateT and returns it in m.
(&=) :: MonadState s m => ASetter' s b -> State b a -> m () infix 3 #
Similar to '(%=)' but takes a state modification instead of a function.
The viridis colour map taken from https://bids.github.io/colormap/. This is the default colour map.
The plasma colour map taken from https://bids.github.io/colormap/.
The inferno colour map taken from https://bids.github.io/colormap/.
toStops :: Fractional n => ColourMap -> [GradientStop n] #
alphaColourMap :: [(Rational, AlphaColour Double)] -> ColourMap #
colourList :: ColourMap -> [(Rational, AlphaColour Double)] #
Return the list of colours in the [0,1] range in order. This always includes colours 0 and 1.
cmTraverse :: IndexedTraversal' Rational ColourMap (AlphaColour Double) #
Indexed traversal over the colours indexed and ordered by their position in the map.
crossShape :: (InSpace V2 n t, TrailLike t) => n -> t #
A rotated plus.
asterisk :: OrderedField n => Int -> n -> Path V2 n #
Make an asterisk with n spokes, each of length l.
lineMarkers :: OrderedField n => [Path V2 n] #
asterisk markers with varying numbers of prongs.
colours2 :: OrderedField n => [Colour n] #
Another colour set, used for vividColours.
colours1 :: OrderedField n => [Colour n] #
A colourful colour set used for fadedColours.
blackAndWhite :: (TypeableFloat n, Renderable (Path V2 n) b) => AxisStyle b V2 n #
Theme without any colours, useful for black and white documents.
vividColours :: (TypeableFloat n, Renderable (Path V2 n) b) => AxisStyle b V2 n #
Theme using funColours with no lines on 'areaStyle.
fadedColours :: (TypeableFloat n, Renderable (Path V2 n) b) => AxisStyle b V2 n #
Theme using funColours with faded fills and thick lines.
applyTextStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t #
applyAreaStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t #
Apply the 'areaStyle from a PlotStyle.
applyLineStyle :: (InSpace v n t, HasStyle t) => PlotStyle b v n -> t -> t
applyMarkerStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t #
Apply the markerStyle from a PlotStyle.
applyMarkerStyle :: (InSpace v n t, HasStyle t) => PlotStyle b v n -> t -> t
applyLineStyle :: (SameSpace a t, HasPlotStyle (Const (PlotStyle b (V a) (N a)) :: * -> *) a b, HasStyle t) => a -> t -> t #
data PlotStyle b (v :: * -> *) n #
Plot styles are used to style each plot in an axis. Every Axis
comes with a list of plots styles (contained in the AxisStyle)
which get applied the plots upon rendering.
You can either change the list of plot styles used with
axisStyle:
stylishAxis = r2Axis &~ do axisStyle .= vividColours linePlot [(1,2) (3,4)] $ key "line 1" linePlot [(1,1) (4,2)] $ key "line 2"
change the style for individual plots when changing the plot state.
stylishAxis2 = r2Axis &~ do
linePlot [(1,2) (3,4)] $ do
key "line 1"
plotColour .= green
linePlot [(1,1) (4,2)] $ do
key "line 2"
plotColour .= orange
A plot style is made up of separate styles (lineStyle,
markerStyle, areaStyle and textStyle) a plotColour and a
plotMarker. When rendering a plot, the PlotStyles in an
AxisStyle are used to style each plot. The lenses can be used to
customise each style when adding the plot.
plotColour- the underlying colour of the plotlineStyle- style used for lines (linePlot,connectingLinein ascatterPlot)areaStyle- style used for any area (barPlot,piePlot,histogramPlot)markerStyle- style used for markers inscatterPlotplotMarker- marker used inscatterPlot
Instances
class HasPlotStyle (f :: * -> *) a b | a -> b where #
Class for objects that contain a PlotStyle.
Minimal complete definition
Methods
plotStyle :: LensLike' f a (PlotStyle b (V a) (N a)) #
Lens onto the PlotStyle.
plotColour :: LensLike' f a (Colour Double) #
The plotColour is the overall colour of the plot. This is passed
to the other styles (lineStyle, markerStyle etc.) to give an
overall colour for the plot.
plotColor :: LensLike' f a (Colour Double) #
Alias for plotColour.
lineStyle :: LensLike' f a (Style (V a) (N a)) #
This style is applied to any plots made up of lines only (like
Path plots). This is a less general version of
lineStyleFunction.
lineStyleFunction :: LensLike' f a (Colour Double -> Style (V a) (N a)) #
A version lineStyle with access to the current plotColour
when applyLineStyle is used.
markerStyle :: LensLike' f a (Style (V a) (N a)) #
This style is applied to any markers in the plot (usually the
plotMarker). This is a less general version of
markerStyleFunction.
markerStyleFunction :: LensLike' f a (Colour Double -> Style (V a) (N a)) #
A version lineStyle with access to the current plotColour when
applyMarkerStyle is used.
areaStyle :: LensLike' f a (Style (V a) (N a)) #
This style is applied to any filled areas in a plot (like
Bar or Ribbon). This is a less
general version of areaStyleFunction.
areaStyleFunction :: LensLike' f a (Colour Double -> Style (V a) (N a)) #
A version areaStyle with access to the current plotColour when
applyAreaStyle is used.
textStyle :: LensLike' f a (Style (V a) (N a)) #
This style is applied to text plots. This is a less general
version of textStyleFunction.
textStyleFunction :: LensLike' f a (Colour Double -> Style (V a) (N a)) #
A version textStyle with access to the current plotColour when
applyAreaStyle is used.
plotMarker :: LensLike' f a (QDiagram b (V a) (N a) Any) #
This diagram is used as any markers in a plot (like
Scatter). The markerStyle will be applied to this
marker when the plot gets rendered.
plotStyles :: LensLike' f a (Style (V a) (N a)) #
A traversal over all the styles (lineStyle, markerStyle,
areaStyle and textStyle) of a PlotStyle. This is a less
general version of plotStyleFunctions.
plotStyleFunctions :: LensLike' f a (Colour Double -> Style (V a) (N a)) #
A version of plotStyles with access to the plotColour.
Instances
class HasAxisStyle a b | a -> b where #
Class of things that have an AxisStyle.
Minimal complete definition
Methods
axisStyle :: Lens' a (AxisStyle b (V a) (N a)) #
Lens onto the AxisStyle.
axisColourMap :: Lens' a ColourMap #
axisStyles :: IndexedTraversal' Int a (PlotStyle b (V a) (N a)) #
Instances
| HasAxisStyle (Axis b v n) b | |
| HasAxisStyle (AxisStyle b v n) b | |
A map from a number (usually between 0 and 1) to a colour. Colour
maps are part of the AxisStyle, which is used for plots like
HeatMap.
Instances
| Show ColourMap | |
| Wrapped ColourMap | |
| AsEmpty ColourMap | |
Defined in Plots.Style | |
| Ixed ColourMap | |
Defined in Plots.Style | |
| At ColourMap | |
| Transformable ColourMap | |
| Rewrapped ColourMap ColourMap | |
Defined in Plots.Style | |
| Each ColourMap ColourMap (AlphaColour Double) (AlphaColour Double) | |
Defined in Plots.Style Methods each :: Traversal ColourMap ColourMap (AlphaColour Double) (AlphaColour Double) # | |
| type Unwrapped ColourMap | |
Defined in Plots.Style | |
| type IxValue ColourMap | |
Defined in Plots.Style | |
| type Index ColourMap | |
Defined in Plots.Style | |
| type N ColourMap | |
Defined in Plots.Style | |
| type V ColourMap | |
Defined in Plots.Style type V ColourMap = V1 | |
logDeform :: (InSpace v n a, Foldable v, Floating n, Deformable a a) => v LogScale -> a -> a #
Deform an object according to the axis scale. Does nothing for linear scales.
logPoint :: (Additive v, Floating n) => v LogScale -> Point v n -> Point v n #
Transform a point according to the axis scale. Does nothing for linear scales.
logNumber :: Floating a => LogScale -> a -> a #
Log the number for LogAxis, do nothing for LinearAxis.
Arguments
| :: (HasLinearMap v, OrderedField n, Applicative v) | |
| => v (AxisScaling n) | axis scaling options |
| -> BoundingBox v n | bounding box from the axis plots |
| -> (v (n, n), Transformation v n, Transformation v n) |
Calculate the scaling for the axis.
The result returns:
- The final bounds for the axis
- scale to match desired
scaleAspectRatio - scale to match desired
asSizeSpec
Arguments
| :: OrderedField n | |
| => AxisScaling n | Scaling to use for this axis |
| -> Maybe (n, n) | Inferred bounds (from any plots) |
| -> (n, n) | Lower and upper bounds to use for this axis |
Calculating the bounds for an axis.
How the axis should be scaled when not all dimensions are set.
Constructors
| AutoScale | |
| NoScale | |
| Stretch | |
| UniformScale UniformScaleStrategy |
data UniformScaleStrategy #
?
Instances
| Read UniformScaleStrategy | |
Defined in Plots.Axis.Scale Methods readsPrec :: Int -> ReadS UniformScaleStrategy # readList :: ReadS [UniformScaleStrategy] # | |
| Show UniformScaleStrategy | |
Defined in Plots.Axis.Scale Methods showsPrec :: Int -> UniformScaleStrategy -> ShowS # show :: UniformScaleStrategy -> String # showList :: [UniformScaleStrategy] -> ShowS # | |
data AxisScaling n #
Data type used that concerns everything to do with the size or scale of the axis.
Instances
| HasAxisScaling f (AxisScaling n) | |
Defined in Plots.Axis.Scale Methods axisScaling :: LensLike' f (AxisScaling n) (AxisScaling (N (AxisScaling n))) # scaleAspectRatio :: LensLike' f (AxisScaling n) (Maybe (N (AxisScaling n))) # scaleMode :: LensLike' f (AxisScaling n) ScaleMode # logScale :: LensLike' f (AxisScaling n) LogScale # axisExtend :: LensLike' f (AxisScaling n) (Extending (N (AxisScaling n))) # boundMin :: LensLike' f (AxisScaling n) (Maybe (N (AxisScaling n))) # boundMax :: LensLike' f (AxisScaling n) (Maybe (N (AxisScaling n))) # renderSize :: LensLike' f (AxisScaling n) (Maybe (N (AxisScaling n))) # | |
| Fractional n => Default (AxisScaling n) | |
Defined in Plots.Axis.Scale Methods def :: AxisScaling n # | |
| type N (AxisScaling n) | |
Defined in Plots.Axis.Scale type N (AxisScaling n) = n | |
How much to extend the bounds beyond any inferred bounds.
Constructors
| AbsoluteExtend n | |
| RelativeExtend n |
Instances
| Functor Extending | |
| Eq n => Eq (Extending n) | |
| Ord n => Ord (Extending n) | |
Defined in Plots.Axis.Scale | |
| Show n => Show (Extending n) | |
class HasAxisScaling (f :: * -> *) a where #
Class of things that have an AxisScaling.
Minimal complete definition
Methods
axisScaling :: LensLike' f a (AxisScaling (N a)) #
The way to scale in one direction.
scaleAspectRatio :: LensLike' f a (Maybe (N a)) #
The ratio relative to other axis. If no ratios are set, the ratio
is not enforced. If at least one is set, Nothing ratios are
1.
scaleMode :: LensLike' f a ScaleMode #
The mode to determine how to scale the bounds in a direction.
Choose between AutoScale, NoScale, Stretch or
UniformScale.
logScale :: LensLike' f a LogScale #
Whether the axis uses LogAxis or LinearAxis.
Default is LinearAxis.
axisExtend :: LensLike' f a (Extending (N a)) #
How much to extend the bounds over infered bounds. This is
ignored if a boundMax or boundMin is set.
boundMin :: LensLike' f a (Maybe (N a)) #
The maximum bound the axis. There are helper functions for setting a minimum bound for a specific axis.
xMin::Lens'(AxisbV2Double) (MaybeDouble)yMin::Lens'(AxisbV2Double) (MaybeDouble)
Default is Nothing.
boundMax :: LensLike' f a (Maybe (N a)) #
The maximum bound the axis. There are helper functions for setting a maximum bound specific axis.
xMax::Lens'(AxisbV2Double) (MaybeDouble)yMax::Lens'(AxisbV2Double) (MaybeDouble)rMax::Lens'(Axisb 'PolarDouble) (MaybeDouble)
Default is Nothing.
renderSize :: LensLike' f a (Maybe (N a)) #
The size of the rendered axis. Default is .Just 400
Instances
Should the axis be on a logarithmic scale. The Default is
LinearAxis.
Constructors
| LinearAxis | |
| LogAxis |
interpPolar :: Num n => n -> Polar n -> Polar n -> Polar n #
Polar interpolation between two polar coordinates.
polarIso :: (Profunctor p, Functor f) => p (n, Angle n) (f (n, Angle n)) -> p (Polar n) (f (Polar n)) #
class Radial (t :: * -> *) where #
Space which has a radial length basis. For Polar and Cylindrical this is the radius of the circle in the xy-plane. For Spherical this is the distance from the origin.
Minimal complete definition
class Radial t => Circle (t :: * -> *) where #
Space which has a radial and angular basis.
class HasX (t :: * -> *) where #
Coordinate with at least one dimension where the x coordinate can be
retreived numerically. Note this differs slightly from R1 which requires
a lens for all values. This allows instances for different coordinates
such as Polar, where the x coordinate can only be retreived numerically.
Minimal complete definition
Instances
| HasX V3 | |
Defined in Diagrams.Coordinates.Polar | |
| HasX V2 | |
Defined in Diagrams.Coordinates.Polar | |
| HasX Polar | |
| HasX v => HasX (Point v) | |
Defined in Diagrams.Coordinates.Polar | |
class HasX t => HasY (t :: * -> *) where #
Coordinate with at least two dimensions where the x and y coordinates can be retreived numerically.
Minimal complete definition
Constructors
| Polar (V2 a) |